blob: bab0d75ce2ee1055541bb96db4685943dfc629ef (
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
29
30
|
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/unrealircd/files/unrealircd.rc,v 1.8 2009/12/22 01:01:07 vostorga Exp $
opts="reload start stop"
depend() {
use dns net
provide ircd
}
start() {
ebegin "Starting unrealircd"
start-stop-daemon --start --quiet --exec /usr/bin/unrealircd \
--chuid ${UNREALIRCD_USER} -- ${UNREALIRCD_OPTS} &>/dev/null
eend $?
}
stop() {
ebegin "Shutting down unrealircd"
start-stop-daemon --stop --quiet --exec /usr/bin/unrealircd
eend $?
}
reload() {
ebegin "Re-Loading unrealircd"
killall -1 unrealircd
eend $?
}
|