#!@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"