From 4f4aa69b1188688c979b36bc79ea36a4d2db8b9d Mon Sep 17 00:00:00 2001 From: feld Date: Wed, 22 Feb 2017 22:24:16 +0000 Subject: 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 --- news/nzbget/Makefile | 2 +- news/nzbget/files/nzbget.in | 21 +-------------------- 2 files changed, 2 insertions(+), 21 deletions(-) (limited to 'news') 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" -- cgit