From 1235699abc51d2d800c95260d382f5cc492851bf Mon Sep 17 00:00:00 2001 From: thib Date: Mon, 18 Sep 2000 08:25:39 +0000 Subject: [PATCH] test existence of /var/lock/subsys (used under Mandrake --- script/sysVinit-launcher | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 -- 2.40.0