blob: ba9d0cc66d56c11f85faf47ef5bae595095b4855 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: smartd.sh,v 1.4 2006/07/17 17:01:32 wiz Exp $
#
# PROVIDE: smartd
# REQUIRE: DAEMON
. /etc/rc.subr
name="smartd"
rcvar=$name
command="@PREFIX@/sbin/${name}"
pidfile="@VARBASE@/run/${name}.pid"
required_files="@PKG_SYSCONFDIR@/${name}.conf"
command_args="-p $pidfile"
extra_commands="reload check"
check_precmd='[ "$rc_pid" ]'
check_cmd='kill -USR1 $rc_pid'
load_rc_config $name
run_rc_command "$1"
|