diff options
author | Mark Felder <feld@FreeBSD.org> | 2017-02-22 22:24:16 +0000 |
---|---|---|
committer | Mark Felder <feld@FreeBSD.org> | 2017-02-22 22:24:16 +0000 |
commit | fd22dbb368ead984559c58cd53884d8d2ba6903c (patch) | |
tree | edb83b52665d1e20affd5ec62d78b8845cbe837a /news | |
parent | - Update to 16.2.0 (diff) |
news/nzbget: rc script improvement
nzbget obeys normal signals. Use them instead of needlessly complicating
the rc script.
PR: 216894
Approved by: maintainer timeout
MFH: 2017Q1
Notes
Notes:
svn path=/head/; revision=434648
Diffstat (limited to 'news')
-rw-r--r-- | news/nzbget/Makefile | 2 | ||||
-rw-r--r-- | news/nzbget/files/nzbget.in | 21 |
2 files changed, 2 insertions, 21 deletions
diff --git a/news/nzbget/Makefile b/news/nzbget/Makefile index c7ee7fb6e7ba..ebe2c3dcaa7a 100644 --- a/news/nzbget/Makefile +++ b/news/nzbget/Makefile @@ -4,7 +4,7 @@ PORTNAME= nzbget PORTVERSION= 17.1 DISTVERSIONPREFIX= v -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= news MAINTAINER= toxic@doobie.com diff --git a/news/nzbget/files/nzbget.in b/news/nzbget/files/nzbget.in index bf746335380d..feefd80161c6 100644 --- a/news/nzbget/files/nzbget.in +++ b/news/nzbget/files/nzbget.in @@ -21,25 +21,6 @@ load_rc_config ${name} : ${nzbget_enable:=NO} command=%%PREFIX%%/bin/nzbget -start_cmd="${name}_start" -status_cmd="${command} -L S" -stop_cmd="${name}_stop" - -nzbget_start() -{ - echo "Starting ${name}." - # artificial sleep because it doesnt want to start - # after a restart without it - sleep .5 - ${command} -D -} - -nzbget_stop() -{ - echo "Stopping ${name}." - ${command} -Q - # artificial sleep because stop is backgrounded - sleep 3 -} +command_args="-D" run_rc_command "$1" |