aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/smartmontools
diff options
context:
space:
mode:
authornork <nork@FreeBSD.org>2004-04-29 10:46:13 +0800
committernork <nork@FreeBSD.org>2004-04-29 10:46:13 +0800
commit6e04c7e82554378b7bb06b3d34a6ea3e14f22321 (patch)
tree7fab316befa3be35d8e6d5ac490cf54eeb90c960 /sysutils/smartmontools
parentfb9113c7c4f7c0305b99fa02c8e15630cdfbaf3e (diff)
downloadfreebsd-ports-gnome-6e04c7e82554378b7bb06b3d34a6ea3e14f22321.tar.gz
freebsd-ports-gnome-6e04c7e82554378b7bb06b3d34a6ea3e14f22321.tar.zst
freebsd-ports-gnome-6e04c7e82554378b7bb06b3d34a6ea3e14f22321.zip
Oops, fix handling pidfile.
Pointy hat to: myself
Diffstat (limited to 'sysutils/smartmontools')
-rw-r--r--sysutils/smartmontools/Makefile2
-rw-r--r--sysutils/smartmontools/files/smartd.sh5
2 files changed, 4 insertions, 3 deletions
diff --git a/sysutils/smartmontools/Makefile b/sysutils/smartmontools/Makefile
index ed19379ec867..1424cb3d17bf 100644
--- a/sysutils/smartmontools/Makefile
+++ b/sysutils/smartmontools/Makefile
@@ -7,7 +7,7 @@
PORTNAME= smartmontools
PORTVERSION= 5.30
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
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