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.
gentoo-overlay/net-analyzer/symon/files/symux-init.d

33 lines
548 B

#!/sbin/openrc-run
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the 2-clause BSD license
extra_started_commands="reload"
depend() {
after bootmisc
need localmount net
use logger
}
reload() {
ebegin "Reloading symux"
start-stop-daemon \
--pidfile /run/symux.pid \
--exec /usr/sbin/symux \
--signal HUP
eend $?
}
start() {
ebegin "Starting symux"
start-stop-daemon --start --exec /usr/sbin/symux
eend $?
}
stop() {
ebegin "Stopping symux"
start-stop-daemon --stop --pidfile /run/symux.pid
eend $?
}