1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-24 19:55:26 +03:00
aports/community/freeipmi/bmc-watchdog.initd
2022-10-08 12:06:07 +00:00

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 $?
}