diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2004-04-29 02:46:13 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2004-04-29 02:46:13 +0000 |
commit | 2fe26720b8d649f89a6f9079c3358287f610fcaf (patch) | |
tree | ade1f067247d67702f31db725ce3b733ff11a759 /sysutils/smartmontools/files | |
parent | ffd27720e87bf01da020903520fdc562ca0de648 (diff) | |
download | ports-2fe26720b8d649f89a6f9079c3358287f610fcaf.tar.gz ports-2fe26720b8d649f89a6f9079c3358287f610fcaf.zip |
Notes
Diffstat (limited to 'sysutils/smartmontools/files')
-rw-r--r-- | sysutils/smartmontools/files/smartd.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sysutils/smartmontools/files/smartd.sh b/sysutils/smartmontools/files/smartd.sh index c8f3c66d586c..681b47d0c33a 100644 --- a/sysutils/smartmontools/files/smartd.sh +++ b/sysutils/smartmontools/files/smartd.sh @@ -15,13 +15,14 @@ # smartd_enable="NO" smartd_flags="" +smartd_pidfile="/var/run/smartd.pid" . %%RC_SUBR%% name="smartd" rcvar=`set_rcvar` command="%%PREFIX%%/sbin/smartd" -pidfile="/var/run/smartd.pid" +pidfile="${smartd_pidfile}" required_files="%%PREFIX%%/etc/smartd.conf" load_rc_config $name @@ -33,7 +34,7 @@ case "${smartd_flags}" in exit 1 ;; *) - smartd_flags="-p ${smartd_pidfile} ${smartd_flags}" + smartd_flags="-p ${pidfile} ${smartd_flags}" ;; esac |