[Python-apps-commits] r9745 - in packages/sabnzbdplus/trunk/debian (sabnzbdplus.init)
jcfp-guest at users.alioth.debian.org
jcfp-guest at users.alioth.debian.org
Sat Jun 15 11:59:33 UTC 2013
Date: Saturday, June 15, 2013 @ 11:59:32
Author: jcfp-guest
Revision: 9745
Init tweaks
Modified:
packages/sabnzbdplus/trunk/debian/sabnzbdplus.init
Modified: packages/sabnzbdplus/trunk/debian/sabnzbdplus.init
===================================================================
--- packages/sabnzbdplus/trunk/debian/sabnzbdplus.init 2013-06-14 20:57:49 UTC (rev 9744)
+++ packages/sabnzbdplus/trunk/debian/sabnzbdplus.init 2013-06-15 11:59:32 UTC (rev 9745)
@@ -24,7 +24,7 @@
# service, starting the program on boot.
### END INIT INFO
-NAME="$(basename $0)"
+NAME="sabnzbdplus"
DAEMON="/usr/bin/sabnzbdplus"
SETTINGS="/etc/default/$NAME"
@@ -83,7 +83,7 @@
start-stop-daemon --quiet --chuid $USER --start --exec $DAEMON -- $OPTIONS
check_retval
# create a pidfile; we don't use it but some monitoring app likes to have one
- [ -w $(dirname "$PIDFILE") ] && \
+ [ -w "$(dirname "$PIDFILE")" ] && \
pgrep -f -x -n -u ${USER%:*} "$PYTHONEXEC $DAEMON $OPTIONS" > "$PIDFILE"
else
log_success_msg "$DESC: already running (pid $PID)"
More information about the Python-apps-commits
mailing list