aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfeld <feld@FreeBSD.org>2016-06-13 23:46:41 +0800
committerfeld <feld@FreeBSD.org>2016-06-13 23:46:41 +0800
commit302b04d27a59048026aa3759386b3097076d2fdd (patch)
tree5d6727c08d5a709602c3c989c1bd8dd3dce5d2d7
parent4162f4ef0959be8c55013a816286a930e5084921 (diff)
downloadfreebsd-ports-gnome-302b04d27a59048026aa3759386b3097076d2fdd.tar.gz
freebsd-ports-gnome-302b04d27a59048026aa3759386b3097076d2fdd.tar.zst
freebsd-ports-gnome-302b04d27a59048026aa3759386b3097076d2fdd.zip
sysutils/mfid: Improve rc script
Now you can use mfid_flags in rc.conf to control other daemon flags
-rw-r--r--sysutils/mfid/Makefile2
-rw-r--r--sysutils/mfid/files/mfid.in14
2 files changed, 5 insertions, 11 deletions
diff --git a/sysutils/mfid/Makefile b/sysutils/mfid/Makefile
index 35af2d33c8a9..b02a0fb6d40a 100644
--- a/sysutils/mfid/Makefile
+++ b/sysutils/mfid/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= mfid
-PORTVERSION= 0.03
+PORTVERSION= 0.04
CATEGORIES= sysutils
MASTER_SITES= LOCAL/feld
diff --git a/sysutils/mfid/files/mfid.in b/sysutils/mfid/files/mfid.in
index 141b7996ca56..6c1afe0c56be 100644
--- a/sysutils/mfid/files/mfid.in
+++ b/sysutils/mfid/files/mfid.in
@@ -12,16 +12,10 @@ name=mfid
rcvar=mfid_enable
load_rc_config $name
-raid_alert_mailto=${mfid_alert_mailto:-"root@localhost"}
-start_cmd=mfid_start
-stop_cmd="killall -9 mfid > /dev/null 2>&1"
+required_files=/dev/mfi0
-mfid_start()
-{
- if [ -x "%%PREFIX%%/sbin/mfid" -a -e "/dev/mfi0" ]; then
- echo "Starting mfid."
- %%PREFIX%%/sbin/mfid ${raid_alert_mailto}
- fi
-}
+raid_alert_mailto=${mfid_alert_mailto:-"root@localhost"}
+command=%%PREFIX%%/sbin/mfid
+command_args=${raid_alert_mailto}
run_rc_command "$1"