aboutsummaryrefslogtreecommitdiffstats
path: root/testing/freeipmi/bmc-watchdog.initd
blob: 6beab06597c9b03372b3ef7a84471539ac394327 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/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 $?
}