]>
git.proxmox.com Git - mirror_smartmontools-debian.git/blob - smartd.freebsd.initd.in
3 # $FreeBSD: ports/sysutils/smartmontools/files/smartd.in,v 1.4 2012/02/15 08:46:57 dougb Exp $
7 # KEYWORD: shutdown nojail
9 # Define these smartd_* variables in one of these files:
12 # /etc/rc.conf.d/smartd
14 # DO NOT CHANGE THESE DEFAULT VALUES HERE
23 : ${smartd_enable:="NO"}
25 required_files
=${smartd_config:="/usr/local/etc/smartd.conf"}
26 pidfile
=${smartd_pidfile:="/var/run/smartd.pid"}
28 command="/usr/local/sbin/smartd"
29 command_args
="-c ${required_files} -p ${pidfile}"
31 extra_commands
="reload report"
32 reload_cmd
="smartd_reload"
33 report_cmd
="smartd_report"
35 start_precmd
=smartd_prestart
39 case "${smartd_flags}" in
41 err
1 'smartd_flags includes the -p option, use smartd_pidfile instead'
50 if ! status
=`run_rc_command status 2>&1`; then
54 echo 'Reloading smartd.'
62 if ! status
=`run_rc_command status 2>&1`; then
66 echo 'Checking SMART devices now.'