aboutsummaryrefslogtreecommitdiffstats
path: root/main/ngircd/ngircd.initd
diff options
context:
space:
mode:
authorLeonardo Arena <rnalrd@alpinelinux.org>2012-01-20 12:00:17 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2012-01-20 12:00:17 +0000
commita5f23a46463a6ec41f5403a9e0cf8e17e2a1ac9d (patch)
treed1ba16b7b0ec8c7969d8792f383153252f49fa0a /main/ngircd/ngircd.initd
parent8ace64577a8ef1963db630bbb04f807ba8a36b30 (diff)
downloadaports-a5f23a46463a6ec41f5403a9e0cf8e17e2a1ac9d.tar.bz2
aports-a5f23a46463a6ec41f5403a9e0cf8e17e2a1ac9d.tar.xz
main/ngircd: leftover init.d
Diffstat (limited to 'main/ngircd/ngircd.initd')
-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"
+}