[Python-apps-commits] r10867 - in packages/sabnzbdplus/trunk/debian (sabnzbdplus.init)

jcfp-guest at users.alioth.debian.org jcfp-guest at users.alioth.debian.org
Mon May 19 13:58:57 UTC 2014


    Date: Monday, May 19, 2014 @ 13:58:56
  Author: jcfp-guest
Revision: 10867

collapse pid function into start stanza

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

Modified: packages/sabnzbdplus/trunk/debian/sabnzbdplus.init
===================================================================
--- packages/sabnzbdplus/trunk/debian/sabnzbdplus.init	2014-05-18 14:50:23 UTC (rev 10866)
+++ packages/sabnzbdplus/trunk/debian/sabnzbdplus.init	2014-05-19 13:58:56 UTC (rev 10867)
@@ -75,15 +75,10 @@
 	return 0
 }
 
-prep_pid() {
-	PIDDIR="$(dirname "$PIDFILE")"
-	install --directory --owner="${USER%:*}" --group=root --mode=0700 "$PIDDIR" || exit 1
-}
-
 start_sab() {
 	load_settings || exit 0
 	if ! is_running; then
-		prep_pid
+		install --directory --owner="${USER%:*}" --group=root --mode=0700 "$(dirname "$PIDFILE")" || exit 1
 		log_daemon_msg "Starting $DESC"
 		eval start-stop-daemon --start --quiet --chuid "$USER" --exec "$DAEMON" -- $OPTIONS
 		check_retval




More information about the Python-apps-commits mailing list