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

jcfp-guest at users.alioth.debian.org jcfp-guest at users.alioth.debian.org
Wed Jul 12 19:09:31 UTC 2017


    Date: Wednesday, July 12, 2017 @ 19:09:30
  Author: jcfp-guest
Revision: 14204

Init: add support for the optional try-restart argument.

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

Modified: packages/sabnzbdplus/trunk/debian/changelog
===================================================================
--- packages/sabnzbdplus/trunk/debian/changelog	2017-07-12 18:39:57 UTC (rev 14203)
+++ packages/sabnzbdplus/trunk/debian/changelog	2017-07-12 19:09:30 UTC (rev 14204)
@@ -28,6 +28,7 @@
       equivalent in Glitter.
     + add sources for jquery-tablesorter.
     + remove all entries for the wizard interface: no longer needed.
+  * Init: add support for the optional try-restart argument.
 
  -- JCF Ploemen (jcfp) <linux at jcf.pm>  Wed, 07 Dec 2016 10:58:24 +0000
 

Modified: packages/sabnzbdplus/trunk/debian/sabnzbdplus.init
===================================================================
--- packages/sabnzbdplus/trunk/debian/sabnzbdplus.init	2017-07-12 18:39:57 UTC (rev 14203)
+++ packages/sabnzbdplus/trunk/debian/sabnzbdplus.init	2017-07-12 19:09:30 UTC (rev 14204)
@@ -100,7 +100,10 @@
 	stop)
 		stop_sab
 	;;
-	force-reload|restart)
+	force-reload|restart|try-restart)
+		[ "$1" = 'try-restart' ] && {
+			load_settings && is_running || exit 0
+		}
 		stop_sab
 		start_sab
 	;;




More information about the Python-apps-commits mailing list