diff options
author | feld <feld@FreeBSD.org> | 2017-02-23 06:24:16 +0800 |
---|---|---|
committer | feld <feld@FreeBSD.org> | 2017-02-23 06:24:16 +0800 |
commit | 4f4aa69b1188688c979b36bc79ea36a4d2db8b9d (patch) | |
tree | edb83b52665d1e20affd5ec62d78b8845cbe837a /news | |
parent | e70cace3c60b7f5e46b30ec4240220601e45aa43 (diff) | |
download | freebsd-ports-gnome-4f4aa69b1188688c979b36bc79ea36a4d2db8b9d.tar.gz freebsd-ports-gnome-4f4aa69b1188688c979b36bc79ea36a4d2db8b9d.tar.zst freebsd-ports-gnome-4f4aa69b1188688c979b36bc79ea36a4d2db8b9d.zip |
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
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" |