cvs: php-gcov-web /cron cron.sh

From: Date: Tue, 02 Oct 2007 19:28:39 +0000
Subject: cvs: php-gcov-web /cron cron.sh
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-157@lists.php.net to get a copy of this message
nlopess Tue Oct 2 19:28:39 2007 UTC Modified files: /php-gcov-web/cron cron.sh Log: use ps -p instead of grepping http://cvs.php.net/viewvc.cgi/php-gcov-web/cron/cron.sh?r1=1.6&r2=1.7&diff_format=u Index: php-gcov-web/cron/cron.sh diff -u php-gcov-web/cron/cron.sh:1.6 php-gcov-web/cron/cron.sh:1.7 --- php-gcov-web/cron/cron.sh:1.6 Fri Sep 28 23:07:04 2007 +++ php-gcov-web/cron/cron.sh Tue Oct 2 19:28:39 2007 @@ -17,7 +17,7 @@ # | Nuno Lopes <nlopess@php.net> | # +----------------------------------------------------------------------+ -# $Id: cron.sh,v 1.6 2007/09/28 23:07:04 nlopess Exp $ +# $Id: cron.sh,v 1.7 2007/10/02 19:28:39 nlopess Exp $ source ./config.sh export LC_ALL=C @@ -36,7 +36,7 @@ # check if we are alone. if not, quit. if [ -f ${GLOBALPIDFILE} ]; then - if ( ps -A | grep cat "$GLOBALPIDFILE" > /dev/null ); then + if ( ps -p cat "$GLOBALPIDFILE" > /dev/null ); then echo -n "Process already running with PID: " cat ${GLOBALPIDFILE} exit 1

« previous php.webmaster (#157) next »