From: Thibault Godouet Date: Mon, 18 Sep 2000 08:25:39 +0000 (+0000) Subject: test existence of /var/lock/subsys (used under Mandrake X-Git-Tag: ver2_9_4~553 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ec976b3dd5aba9ba0d47a333e96fdcb0113b9fd;p=thirdparty%2Ffcron.git test existence of /var/lock/subsys (used under Mandrake --- diff --git a/script/sysVinit-launcher b/script/sysVinit-launcher index 3a8cfe4..bfcee98 100755 --- a/script/sysVinit-launcher +++ b/script/sysVinit-launcher @@ -6,7 +6,7 @@ # processname: fcron # pidfile: /var/run/fcron.pid # config: /var/spool/fcron/* -# $Id: sysVinit-launcher,v 1.3 2000-09-03 18:55:25 thib Exp $ +# $Id: sysVinit-launcher,v 1.4 2000-09-18 08:25:39 thib Exp $ FUNCTION=0 @@ -30,7 +30,9 @@ case "$1" in fi RETVAL=$? echo - [ $RETVAL -eq 0 ] && touch /var/lock/subsys/fcron + if test -d /var/lock/subsys/; then + [ $RETVAL -eq 0 ] && touch /var/lock/subsys/fcron + fi ;; stop) echo -n "Shutting down fcron" @@ -41,7 +43,9 @@ case "$1" in fi RETVAL=$? echo - [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/fcron + if test -d /var/lock/subsys/; then + [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/fcron + fi ;; status) if test $FUNCTION -eq 1; then