blob: 21e6b44cec6d04932c1fa7bbaf3a348760cfdc2b (
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
31
32
33
34
35
36
37
|
#!/sbin/runscript
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-irc/atheme-services/files/atheme-services.initd,v 1.2 2011/07/22 03:22:12 binki Exp $
opts="reload"
depend() {
need net
use ircd
provide irc-services
}
start() {
ATHEME_SERVICES_RUNDIR=/var/run/atheme
if ! [ -d "${ATHEME_SERVICES_RUNDIR}" ]; then
ebegin "Creating \`${ATHEME_SERVICES_RUNDIR}'"
install -o atheme-services -d "${ATHEME_SERVICES_RUNDIR}"
eend $?
fi
ebegin "Starting ${SVCNAME}"
start-stop-daemon --start --pidfile=/var/run/atheme/atheme.pid --user atheme-services --exec /usr/bin/atheme-services
eend $?
}
reload() {
ebegin "Reloading ${SVCNAME}"
start-stop-daemon --signal HUP --pidfile /var/run/atheme/atheme.pid
eend $?
}
stop() {
ebegin "Stopping ${SVCNAME}"
start-stop-daemon --stop --quiet --pidfile /var/run/atheme/atheme.pid
eend $?
}
|