aboutsummaryrefslogtreecommitdiffstats
path: root/main/smartmontools/smartd.initd
blob: 8c35bf1e0243c42cdb053846bf6e782800a1f1ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/openrc-run
supervisor=supervise-daemon

name=smartd
description="Daemon to monitor the SMART system built into storage devices"
description_reload="Reload configuration without exiting"

command=/usr/sbin/smartd
command_args="$SMARTD_OPTS"
command_args_foreground="--no-fork"

depend() {
    need localmount
    after bootmisc
}

extra_started_commands="reload"

reload() {
	ebegin "Reloading configuration"
	$supervisor $RC_SVCNAME --signal HUP
	eend $?
}