From: Joe Z. <jz...@us...> - 2004-04-01 03:40:17
|
Update of /cvsroot/bobs/bobs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6842/bobs Modified Files: Makefile.am Makefile.in Log Message: Fix bug: cmdloop would not start during system bootup. Index: Makefile.am =================================================================== RCS file: /cvsroot/bobs/bobs/Makefile.am,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- Makefile.am 28 Mar 2004 22:33:21 -0000 1.16 +++ Makefile.am 1 Apr 2004 03:28:23 -0000 1.17 @@ -96,10 +96,24 @@ || echo "** Please run 'chown -R $(myHTTPDUSER) $(myBOBSDATA)'"; \ fi -# Start cmdloopd +# Install cmdloopd as a service (if supported) and start it install-data-hook: + @if test -x "/sbin/chkconfig"; then \ + /sbin/chkconfig --add cmdloopd; \ + else \ + echo ""; \ + echo "********** IMPORTANT **********"; \ + echo "/sbin/chkconfig was not found."; \ + echo "For bobs to run properly you must insert"; \ + echo "the following line into your system startup script:"; \ + echo " $(myrealSYSCONFDIR)/init.d/cmdloopd start"; \ + echo "This will start the bobs background service."; \ + echo "See the INSTALL document for more information."; \ + echo "*******************************"; \ + fi + -$(myrealSYSCONFDIR)/init.d/cmdloopd start # Remove some other crap for 'make distclean' @@ -115,6 +129,9 @@ # The '-' on '-rmdir' tells 'make' to ignore any error returned by command # uninstall-local: + -if test -x "/sbin/chkconfig"; then \ + /sbin/chkconfig --del cmdloopd; \ + fi -kill `/sbin/pidof -x cmdloop` -rmdir `find $(myWEBDIR) -type d | sort -r` -rmdir $(myBOBSDATA)/current/process/{cmd,mounts,session} Index: Makefile.in =================================================================== RCS file: /cvsroot/bobs/bobs/Makefile.in,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- Makefile.in 28 Mar 2004 22:33:21 -0000 1.14 +++ Makefile.in 1 Apr 2004 03:28:23 -0000 1.15 @@ -521,10 +521,24 @@ || echo "** Please run 'chown -R $(myHTTPDUSER) $(myBOBSDATA)'"; \ fi -# Start cmdloopd +# Install cmdloopd as a service (if supported) and start it install-data-hook: + @if test -x "/sbin/chkconfig"; then \ + /sbin/chkconfig --add cmdloopd; \ + else \ + echo ""; \ + echo "********** IMPORTANT **********"; \ + echo "/sbin/chkconfig was not found."; \ + echo "For bobs to run properly you must insert"; \ + echo "the following line into your system startup script:"; \ + echo " $(myrealSYSCONFDIR)/init.d/cmdloopd start"; \ + echo "This will start the bobs background service."; \ + echo "See the INSTALL document for more information."; \ + echo "*******************************"; \ + fi + -$(myrealSYSCONFDIR)/init.d/cmdloopd start # Remove some other crap for 'make distclean' @@ -540,6 +554,9 @@ # The '-' on '-rmdir' tells 'make' to ignore any error returned by command # uninstall-local: + -if test -x "/sbin/chkconfig"; then \ + /sbin/chkconfig --del cmdloopd; \ + fi -kill `/sbin/pidof -x cmdloop` -rmdir `find $(myWEBDIR) -type d | sort -r` -rmdir $(myBOBSDATA)/current/process/{cmd,mounts,session} |