[Pkg-nagios-changes] [pkg-mod-gearman] 22/48: remove pid for any user

Stig Sandbeck Mathisen ssm at debian.org
Sun Nov 24 22:38:10 UTC 2013


This is an automated email from the git hooks/post-receive script.

ssm pushed a commit to branch master
in repository pkg-mod-gearman.

commit f6d1923e3590703c64b67ff49f1ab08d97b9ccf1
Author: Sven Nierlein <sven at nierlein.de>
Date:   Sun Sep 8 00:49:40 2013 +0200

    remove pid for any user
---
 worker/initscript.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/worker/initscript.in b/worker/initscript.in
index ff4b2af..f034749 100755
--- a/worker/initscript.in
+++ b/worker/initscript.in
@@ -66,8 +66,9 @@ case "$1" in
             done
             ps -p $pid > /dev/null 2>&1;
             if [ $? -ne 0 ]; then
+                rm -f $PIDFILE
                 if [ "$USERID" -eq 0 ]; then
-                    rm -f $LOCKFILE $PIDFILE
+                    rm -f $LOCKFILE
                 fi
                 echo "OK"
                 exit 0;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-mod-gearman



More information about the Pkg-nagios-changes mailing list