net-libs/spectrum/files/spectrum.initd
author Da Risk <da_risk@geekorum.com>
Sat, 16 Nov 2013 23:18:08 +0100
changeset 117 0cb2ee2d7365
parent 27 94b7b38eab86
permissions -rw-r--r--
xib-bot: Update ebuild to git-2 and python-single-r1 eclass (Portage version: 2.2.7/hg/Linux x86_64, unsigned Manifest commit)

#!/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 $?
}