[Python-apps-commits] r6375 - in packages/sabnzbdplus/trunk/debian (2 files)

jcfp-guest at users.alioth.debian.org jcfp-guest at users.alioth.debian.org
Wed Dec 8 18:03:48 UTC 2010


    Date: Wednesday, December 8, 2010 @ 18:03:35
  Author: jcfp-guest
Revision: 6375

Fix init script

Modified:
  packages/sabnzbdplus/trunk/debian/changelog
  packages/sabnzbdplus/trunk/debian/sabnzbdplus.init

Modified: packages/sabnzbdplus/trunk/debian/changelog
===================================================================
--- packages/sabnzbdplus/trunk/debian/changelog	2010-12-08 12:44:39 UTC (rev 6374)
+++ packages/sabnzbdplus/trunk/debian/changelog	2010-12-08 18:03:35 UTC (rev 6375)
@@ -1,3 +1,9 @@
+sabnzbdplus (0.5.6-2) UNRELEASED; urgency=low
+
+  * Init script: properly read exit status of mktemp.
+
+ -- JCF Ploemen (jcfp) <linux at jp.pp.ru>  Wed, 08 Dec 2010 18:57:23 +0100
+
 sabnzbdplus (0.5.6-1) unstable; urgency=low
 
   * New upstream release.

Modified: packages/sabnzbdplus/trunk/debian/sabnzbdplus.init
===================================================================
--- packages/sabnzbdplus/trunk/debian/sabnzbdplus.init	2010-12-08 12:44:39 UTC (rev 6374)
+++ packages/sabnzbdplus/trunk/debian/sabnzbdplus.init	2010-12-08 18:03:35 UTC (rev 6375)
@@ -89,7 +89,8 @@
 stop_sab() {
 	load_settings || exit 0
 	if is_running; then
-		TMPFILE=$(mktemp /tmp/sabnzbdplus.XXXXXXXXXX || exit 1)
+		TMPFILE=$(mktemp /tmp/sabnzbdplus.XXXXXXXXXX)
+		[ $? -eq 0 ] || exit 1
 		trap '[ -f $TMPFILE ] && rm -f $TMPFILE' EXIT
 		echo "$PID" > $TMPFILE
 		log_daemon_msg "Stopping $DESC"




More information about the Python-apps-commits mailing list