blob: ade1b2e254da25e7734c9c039969f4e307fe7046 (
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-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-irc/ircservices/files/ircservices.init.d,v 1.1.1.1 2005/11/30 09:49:04 chriswhite Exp $
depend() {
if [ "${LOCALIRCD}" = true ]
then
need net ircd
else
need net
use ircd
fi
}
start() {
ebegin "Starting IRC Services"
/usr/bin/ircservices \
-dir=/var/lib/ircservices \
-log=/var/log/ircservices/ircservices.log \
&>/dev/null
eend $?
}
stop() {
ebegin "Stopping IRC Services"
start-stop-daemon --stop --quiet --pidfile /var/lib/ircservices/ircservices.pid
eend $?
rm -f /var/lib/ircservices/ircservices.pid
}
|