my private gentoo overlay
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
616 B

#!/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
}
start_pre() {
checkpath -d -o "${command_user}:${command_group}" -q "/run/${RC_SVCNAME}"
}
status() {
ebegin "Status Spectrum2 Transport"
${command} status
eend $?
}
stop() {
ebegin "Stopping Spectrum2 Transport"
${command} stop
eend $?
}