From a5f23a46463a6ec41f5403a9e0cf8e17e2a1ac9d Mon Sep 17 00:00:00 2001 From: Leonardo Arena Date: Fri, 20 Jan 2012 12:00:17 +0000 Subject: main/ngircd: leftover init.d --- main/ngircd/ngircd.initd | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'main') diff --git a/main/ngircd/ngircd.initd b/main/ngircd/ngircd.initd index 2c87b16696..a17407f2fe 100644 --- a/main/ngircd/ngircd.initd +++ b/main/ngircd/ngircd.initd @@ -3,6 +3,8 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-irc/ngircd/files/ngircd.init.d,v 1.3 2006/01/02 15:31:27 swegener Exp $ +extra_started_commands="reload" + depend() { need net after firewall @@ -20,3 +22,10 @@ stop() { start-stop-daemon --stop --quiet --exec /usr/sbin/ngircd eend $? "Failed to stop ngIRCd" } + +reload() { + ebegin "Reloading ngIRCd" + start-stop-daemon --stop --signal HUP --quiet --oknodo \ + --exec /usr/sbin/ngircd + eend $? "Failed to reload ngIRCd" +} -- cgit v1.2.3