2018-09-06 18:22:08 +02:00
|
|
|
#!/sbin/openrc
|
2018-09-06 03:47:26 +02:00
|
|
|
# Copyright 1999-2018 Gentoo Foundation
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# $Header: $
|
|
|
|
|
|
|
|
depend() {
|
|
|
|
need net
|
|
|
|
use jabber-server
|
|
|
|
}
|
|
|
|
|
2018-09-06 18:22:08 +02:00
|
|
|
start_pre() {
|
|
|
|
mkdir -p /var/run/spectrum2
|
|
|
|
}
|
|
|
|
|
2018-09-06 03:47:26 +02:00
|
|
|
start() {
|
|
|
|
ebegin "Starting SPECTRUMGEN2PROTOCOL XMPP/Spectrum Transport"
|
|
|
|
start-stop-daemon --start --pidfile ${PIDFILE} \
|
|
|
|
--chuid jabber:jabber --exec /usr/bin/spectrum -- ${CONFFILE}
|
|
|
|
eend $?
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
|
|
|
ebegin "Stopping SPECTRUMGEN2PROTOCOL XMPP/Spectrum Transport"
|
|
|
|
start-stop-daemon --stop --quiet --pidfile ${PIDFILE}
|
|
|
|
eend $?
|
|
|
|
}
|