2016-02-11 11:17:28 +01:00
|
|
|
#!/sbin/openrc-run
|
2018-11-12 03:04:42 +01:00
|
|
|
# Copyright 1999-2018 Gentoo Authors
|
2014-03-18 11:00:56 +01:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2018-11-12 03:04:42 +01:00
|
|
|
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"
|
2014-03-18 11:00:56 +01:00
|
|
|
|
|
|
|
depend() {
|
|
|
|
need net
|
|
|
|
}
|
|
|
|
|
2018-09-20 12:17:02 +02:00
|
|
|
start_pre() {
|
2018-11-12 03:04:42 +01:00
|
|
|
checkpath -d -o "${command_user}:${command_group}" -q "/run/${RC_SVCNAME}"
|
2018-09-20 12:17:02 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
status() {
|
|
|
|
ebegin "Status Spectrum2 Transport"
|
2018-11-12 03:04:42 +01:00
|
|
|
${command} status
|
2014-03-18 11:00:56 +01:00
|
|
|
eend $?
|
|
|
|
}
|
|
|
|
|
|
|
|
stop() {
|
2018-09-20 12:17:02 +02:00
|
|
|
ebegin "Stopping Spectrum2 Transport"
|
2018-11-12 03:04:42 +01:00
|
|
|
${command} stop
|
2014-03-18 11:00:56 +01:00
|
|
|
eend $?
|
|
|
|
}
|