From: Joe Z. <jz...@us...> - 2003-02-03 19:35:05
|
Update of /cvsroot/bobs/bobs/cron In directory sc8-pr-cvs1:/tmp/cvs-serv27792/cron Modified Files: check_loop.in Log Message: Remove path from 'cmdloop' command. pidof didn't work for me with path of cmdloop specified. Index: check_loop.in =================================================================== RCS file: /cvsroot/bobs/bobs/cron/check_loop.in,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- check_loop.in 6 Dec 2002 10:15:38 -0000 1.1 +++ check_loop.in 3 Feb 2003 19:35:02 -0000 1.2 @@ -1,11 +1,14 @@ #!/bin/bash # # This script checks if the cmdloop script is running. If not it starts it. +# +# 02-01-2003 jz Do not use path of cmdloop in pidof command. +# It returned blank on my system. # This is a path that needs to be set! CMDLOOP_DIR='@myBOBSDATA@/current/process' -CMDLOOP_PID=`/sbin/pidof -x $CMDLOOP_DIR/cmdloop` +CMDLOOP_PID=`/sbin/pidof -x cmdloop` if [ "$CMDLOOP_PID" == "" ] then |