aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/ngircd/ngircd.initd9
1 files changed, 9 insertions, 0 deletions
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"
+}