aboutsummaryrefslogtreecommitdiff
path: root/sysutils/smartmontools/files
diff options
context:
space:
mode:
authorNorikatsu Shigemura <nork@FreeBSD.org>2004-04-29 02:46:13 +0000
committerNorikatsu Shigemura <nork@FreeBSD.org>2004-04-29 02:46:13 +0000
commit2fe26720b8d649f89a6f9079c3358287f610fcaf (patch)
treeade1f067247d67702f31db725ce3b733ff11a759 /sysutils/smartmontools/files
parentffd27720e87bf01da020903520fdc562ca0de648 (diff)
downloadports-2fe26720b8d649f89a6f9079c3358287f610fcaf.tar.gz
ports-2fe26720b8d649f89a6f9079c3358287f610fcaf.zip
Notes
Diffstat (limited to 'sysutils/smartmontools/files')
-rw-r--r--sysutils/smartmontools/files/smartd.sh5
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