aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/spectrum/files/spectrum.initd
blob: f5ce89b4962c32e88a11c4102cfce6fd8fc6f71c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/sbin/runscript
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

depend() {
        need net
        use jabber-server
}

start() {
        ebegin "Starting S2P Spectrum Transport"
        start-stop-daemon --start --pidfile ${PIDFILE} \
                 --chuid jabber:jabber --exec /usr/bin/spectrum -- ${CONFFILE}
        eend $?
}

stop() {
        ebegin "Stopping S2P Spectrum Transport"
        start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
        eend $?
}