This repository has been archived on 2024-09-25. You can view files and clone it, but cannot push or open issues or pull requests.
overlay/net-im/spectrum/files/spectrum.initd

27 lines
598 B
Plaintext
Raw Normal View History

#!/sbin/openrc
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
depend() {
need net
use jabber-server
}
start_pre() {
mkdir -p /var/run/spectrum2
}
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 $?
}