blob: 57bbcae9965a35db7ccdb797067d050312cc884a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
#!/sbin/runscript
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/ircd-hybrid/files/init.d_ircd-7.1.0,v 1.1 2005/07/20 19:11:02 swegener Exp $
opts="${opts} rehash"
depend() {
need net
}
start() {
ebegin "Starting IRCd-Hybrid7 daemon"
start-stop-daemon --start --quiet --chuid hybrid --exec /usr/bin/ircd
eend $?
}
stop() {
ebegin "Stopping IRCd-Hybrid7 daemon"
start-stop-daemon --stop --quiet --pidfile /var/run/ircd/ircd.pid
eend $?
}
rehash() {
ebegin "Rehashing IRCd-Hybrid7 IPv4 daemon"
kill -s SIGHUP $(</var/run/ircd/ircd.pid)
eend $?
}
|