diff options
author | Justin Bronder <jsbronder@gentoo.org> | 2013-02-22 01:32:26 +0000 |
---|---|---|
committer | Justin Bronder <jsbronder@gentoo.org> | 2013-02-22 01:32:26 +0000 |
commit | 2a38d5c3ddbd2e0b96e1aad50b6d46b8dfcd5388 (patch) | |
tree | 1bc7079c5ffbd8fd08b8a6b979647fadee7dd936 /net-nntp | |
parent | Bump. (diff) | |
download | gentoo-2-2a38d5c3ddbd2e0b96e1aad50b6d46b8dfcd5388.tar.gz gentoo-2-2a38d5c3ddbd2e0b96e1aad50b6d46b8dfcd5388.tar.bz2 gentoo-2-2a38d5c3ddbd2e0b96e1aad50b6d46b8dfcd5388.zip |
Correctly track status via pidfile re #458034. Thanks to Gerard Neil for the patch.
(Portage version: 2.1.11.50/cvs/Linux x86_64, signed Manifest commit with key 4D7043C9)
Diffstat (limited to 'net-nntp')
-rw-r--r-- | net-nntp/sabnzbd/ChangeLog | 6 | ||||
-rw-r--r-- | net-nntp/sabnzbd/files/sabnzbd.initd | 12 |
2 files changed, 15 insertions, 3 deletions
diff --git a/net-nntp/sabnzbd/ChangeLog b/net-nntp/sabnzbd/ChangeLog index f5fd47a6969f..6f3f1d0af96a 100644 --- a/net-nntp/sabnzbd/ChangeLog +++ b/net-nntp/sabnzbd/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for net-nntp/sabnzbd # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-nntp/sabnzbd/ChangeLog,v 1.8 2013/02/14 18:39:40 jsbronder Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-nntp/sabnzbd/ChangeLog,v 1.9 2013/02/22 01:32:26 jsbronder Exp $ + + 22 Feb 2013; Justin Bronder <jsbronder@gentoo.org> files/sabnzbd.initd: + Correctly track status via pidfile re #458034. Thanks to Gerard Neil for the + patch. *sabnzbd-0.7.11 (14 Feb 2013) diff --git a/net-nntp/sabnzbd/files/sabnzbd.initd b/net-nntp/sabnzbd/files/sabnzbd.initd index 4493474c5944..1a4e5631066d 100644 --- a/net-nntp/sabnzbd/files/sabnzbd.initd +++ b/net-nntp/sabnzbd/files/sabnzbd.initd @@ -1,8 +1,11 @@ #!/sbin/runscript # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-nntp/sabnzbd/files/sabnzbd.initd,v 1.2 2013/01/06 19:44:49 jsbronder Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-nntp/sabnzbd/files/sabnzbd.initd,v 1.3 2013/02/22 01:32:26 jsbronder Exp $ +# pid file name is hard-coded in sabnzbd, this must match +RUNDIR=/var/run/sabnzbd +PIDFILE=${RUNDIR}/sabnzbd-${SABNZBD_PORT}.pid depend() { need net @@ -11,18 +14,23 @@ depend() { start() { ebegin "Starting SABnzbd" + checkpath -q -d -o ${SABNZBD_USER}:${SABNZBD_GROUP} -m 0770 "${RUNDIR}" + start-stop-daemon \ --quiet \ --start \ --user ${SABNZBD_USER} \ --group ${SABNZBD_GROUP} \ --name sabnzbd \ + --pidfile ${PIDFILE} \ --exec /usr/bin/sabnzbd \ -- \ --server ${SABNZBD_SERVER}:${SABNZBD_PORT} \ --config-file ${SABNZBD_CONFIGFILE} \ --logging ${SABNZBD_LOGGING} \ - --daemon + --daemon \ + --pid "${RUNDIR}" + eend $? } |