[Python-apps-commits] r6743 - in packages/sabnzbdplus/trunk/debian (sabnzbdplus.init)
jcfp-guest at users.alioth.debian.org
jcfp-guest at users.alioth.debian.org
Mon Mar 7 16:36:31 UTC 2011
Date: Monday, March 7, 2011 @ 16:36:27
Author: jcfp-guest
Revision: 6743
Init fixes
Modified:
packages/sabnzbdplus/trunk/debian/sabnzbdplus.init
Modified: packages/sabnzbdplus/trunk/debian/sabnzbdplus.init
===================================================================
--- packages/sabnzbdplus/trunk/debian/sabnzbdplus.init 2011-03-07 02:54:25 UTC (rev 6742)
+++ packages/sabnzbdplus/trunk/debian/sabnzbdplus.init 2011-03-07 16:36:27 UTC (rev 6743)
@@ -90,12 +90,12 @@
stop_sab() {
load_settings || exit 0
if is_running; then
- TMPFILE=$(mktemp --tmpdir sabnzbdplus.XXXXXXXXXX)
+ TMPFILE="$(mktemp --tmpdir sabnzbdplus.XXXXXXXXXX)"
[ $? -eq 0 ] || exit 1
- trap '[ -f $TMPFILE ] && rm -f $TMPFILE' EXIT
- echo "$PID" > $TMPFILE
+ trap '[ -f "$TMPFILE" ] && rm -f "$TMPFILE"' EXIT
+ echo "$PID" > "$TMPFILE"
log_daemon_msg "Stopping $DESC"
- start-stop-daemon --stop --user ${USER%:*} --pidfile $TMPFILE --retry 30
+ start-stop-daemon --stop --user ${USER%:*} --pidfile "$TMPFILE" --retry 30
check_retval
else
log_success_msg "$DESC: not running"
More information about the Python-apps-commits
mailing list