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
tastytea 44f2dc00a5
Some checks failed
the build failed
net-im/spectrum: fixed QA issues
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Manifest-Sign-Key: 3555266864CA6D7FF45AA6E7CFC39497F1B26E07
2018-09-06 18:22:08 +02:00

27 lines
598 B
Plaintext

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