gentoo/net-im/spectrum/files/spectrum2.initd

32 lines
616 B
Plaintext
Raw Normal View History

#!/sbin/openrc-run
# Copyright 1999-2018 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
command="/usr/bin/${RC_SVCNAME}_manager"
command_args="start"
command_background="true"
command_group="spectrum"
command_user="spectrum"
name="Spectrum2 Transport"
pidfile="/run/${RC_SVCNAME}/${RC_SVCNAME}_manager.pid"
depend() {
need net
}
2018-09-20 12:17:02 +02:00
start_pre() {
checkpath -d -o "${command_user}:${command_group}" -q "/run/${RC_SVCNAME}"
2018-09-20 12:17:02 +02:00
}
status() {
ebegin "Status Spectrum2 Transport"
${command} status
eend $?
}
stop() {
2018-09-20 12:17:02 +02:00
ebegin "Stopping Spectrum2 Transport"
${command} stop
eend $?
}