From owner-svn-ports-all@freebsd.org Wed Feb 22 22:24:17 2017 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D60BECEAD1C; Wed, 22 Feb 2017 22:24:17 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A2D226BD; Wed, 22 Feb 2017 22:24:17 +0000 (UTC) (envelope-from feld@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v1MMOGlK006751; Wed, 22 Feb 2017 22:24:16 GMT (envelope-from feld@FreeBSD.org) Received: (from feld@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v1MMOGQC006749; Wed, 22 Feb 2017 22:24:16 GMT (envelope-from feld@FreeBSD.org) Message-Id: <201702222224.v1MMOGQC006749@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: feld set sender to feld@FreeBSD.org using -f From: Mark Felder Date: Wed, 22 Feb 2017 22:24:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r434648 - in head/news/nzbget: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Feb 2017 22:24:17 -0000 Author: feld Date: Wed Feb 22 22:24:16 2017 New Revision: 434648 URL: https://svnweb.freebsd.org/changeset/ports/434648 Log: 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 Modified: head/news/nzbget/Makefile head/news/nzbget/files/nzbget.in Modified: head/news/nzbget/Makefile ============================================================================== --- head/news/nzbget/Makefile Wed Feb 22 22:05:12 2017 (r434647) +++ head/news/nzbget/Makefile Wed Feb 22 22:24:16 2017 (r434648) @@ -4,7 +4,7 @@ PORTNAME= nzbget PORTVERSION= 17.1 DISTVERSIONPREFIX= v -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= news MAINTAINER= toxic@doobie.com Modified: head/news/nzbget/files/nzbget.in ============================================================================== --- head/news/nzbget/files/nzbget.in Wed Feb 22 22:05:12 2017 (r434647) +++ head/news/nzbget/files/nzbget.in Wed Feb 22 22:24:16 2017 (r434648) @@ -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"