Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jun 2016 15:46:41 +0000 (UTC)
From:      Mark Felder <feld@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r416848 - in head/sysutils/mfid: . files
Message-ID:  <201606131546.u5DFkfRc067271@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: feld
Date: Mon Jun 13 15:46:41 2016
New Revision: 416848
URL: https://svnweb.freebsd.org/changeset/ports/416848

Log:
  sysutils/mfid: Improve rc script
  
  Now you can use mfid_flags in rc.conf to control other daemon flags

Modified:
  head/sysutils/mfid/Makefile
  head/sysutils/mfid/files/mfid.in

Modified: head/sysutils/mfid/Makefile
==============================================================================
--- head/sysutils/mfid/Makefile	Mon Jun 13 15:43:53 2016	(r416847)
+++ head/sysutils/mfid/Makefile	Mon Jun 13 15:46:41 2016	(r416848)
@@ -2,7 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	mfid
-PORTVERSION=	0.03
+PORTVERSION=	0.04
 CATEGORIES=	sysutils
 MASTER_SITES=	LOCAL/feld
 

Modified: head/sysutils/mfid/files/mfid.in
==============================================================================
--- head/sysutils/mfid/files/mfid.in	Mon Jun 13 15:43:53 2016	(r416847)
+++ head/sysutils/mfid/files/mfid.in	Mon Jun 13 15:46:41 2016	(r416848)
@@ -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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606131546.u5DFkfRc067271>