]> git.pld-linux.org Git - packages/daemontools.git/commitdiff
- skip errors when no services are registered at shutdown
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 5 Jan 2006 21:42:13 +0000 (21:42 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    daemontools.init -> 1.14

daemontools.init

index 6c28e0074ca55e57ee580482679d9de321b920f3..9e9b4b771cb3e881fbbc3d3607f44f2d7509dfb7 100644 (file)
@@ -56,8 +56,11 @@ case "$1" in
        if [ -f /var/lock/subsys/svscan ]; then
                msg_stopping svscan
                killproc svscan
-               svc -d -x $SVSCAN_DIR/* \
-                   $(find $SVSCAN_DIR/* -maxdepth 0 -follow -perm -1000|sed s-\$-/log-)
+               svc=$(echo $SVSCAN_DIR/*)
+               if [ "$svc" != "$SVSCAN_DIR/*" ]; then
+                       svc -d -x $SVSCAN_DIR/* \
+                               $(find $SVSCAN_DIR/* -maxdepth 0 -follow -perm -1000|sed s-\$-/log-)
+               fi
                rm -f /var/run/svscan.pid /var/lock/subsys/svscan >/dev/null 2>&1
        else
                msg_not_running svscan
This page took 0.086204 seconds and 4 git commands to generate.