projects/aports·blob master · refs

26 lines · 424 B

1#!/sbin/openrc-run
2
3description="BMC Watchdog daemon"
4pidfile="/var/run/$RC_SVCNAME.pid"
5command="/usr/sbin/$RC_SVCNAME"
6
7start() {
8 ebegin "Starting $RC_SVCNAME"
9 start-stop-daemon --start \
10 --exec $command \
11 --pidfile $pidfile \
12 --make-pidfile \
13 --quiet \
14 --background \
15 -- \
16 --daemon
17 $OPTIONS
18 eend $?
19}
20
21stop() {
22 ebegin "Stopping $RC_SVCNAME"
23 start-stop-daemon --stop \
24 --pidfile $pidfile
25 eend $?
26}