diff -r 8b435e1f15e0 -r 94b7b38eab86 net-libs/spectrum/files/spectrum.initd --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/net-libs/spectrum/files/spectrum.initd Fri Dec 02 21:02:40 2011 +0100 @@ -0,0 +1,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 $? +}