mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
26 lines
424 B
Bash
26 lines
424 B
Bash
#!/sbin/openrc-run
|
|
|
|
description="BMC Watchdog daemon"
|
|
pidfile="/var/run/$RC_SVCNAME.pid"
|
|
command="/usr/sbin/$RC_SVCNAME"
|
|
|
|
start() {
|
|
ebegin "Starting $RC_SVCNAME"
|
|
start-stop-daemon --start \
|
|
--exec $command \
|
|
--pidfile $pidfile \
|
|
--make-pidfile \
|
|
--quiet \
|
|
--background \
|
|
-- \
|
|
--daemon
|
|
$OPTIONS
|
|
eend $?
|
|
}
|
|
|
|
stop() {
|
|
ebegin "Stopping $RC_SVCNAME"
|
|
start-stop-daemon --stop \
|
|
--pidfile $pidfile
|
|
eend $?
|
|
}
|