aboutsummaryrefslogtreecommitdiffstats
path: root/testing/rasdaemon/rasdaemon.initd
blob: 221d238320c063f6c15d72d736a6a916e33bdb34 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/sbin/openrc-run

description="daemon to receive RAS error tracings"

pidfile=/run/"$RC_SVCNAME".pid
command=/usr/sbin/rasdaemon
command_args="--foreground --record"
command_background=true

depend() {
	need localmount sysfs
}

start_post() {
	"${command}" --enable
}

stop_post() {
	"${command}" --disable
}