Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2012 15:58:37 +0000 (UTC)
From:      Chris Rees <crees@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r307290 - head/net-mgmt/openvmps/files
Message-ID:  <201211101558.qAAFwbNN050567@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: crees
Date: Sat Nov 10 15:58:37 2012
New Revision: 307290
URL: http://svnweb.freebsd.org/changeset/ports/307290

Log:
  Fix rc file order to respect defaults correctly, style nits and stop
  calling test where expressions will do.
  
  Feature safe:	yes

Modified:
  head/net-mgmt/openvmps/files/vmpsd.in

Modified: head/net-mgmt/openvmps/files/vmpsd.in
==============================================================================
--- head/net-mgmt/openvmps/files/vmpsd.in	Sat Nov 10 15:38:55 2012	(r307289)
+++ head/net-mgmt/openvmps/files/vmpsd.in	Sat Nov 10 15:58:37 2012	(r307290)
@@ -1,28 +1,29 @@
 #!/bin/sh
 
-# Start or stop vmpsd
 # $FreeBSD$
 
 # PROVIDE: vmpsd
 # REQUIRE: DAEMON
 # KEYWORD: shutdown
 
+. /etc/rc.subr
+
+name=vmpsd
+rcvar=vmpsd_enable
+
+load_rc_config $name
+
 # Define these vmpsd_* variables in one of these files:
 #       /etc/rc.conf
 #       /etc/rc.conf.local
 #       /etc/rc.conf.d/vmpsd
 #
 # DO NOT CHANGE THESE DEFAULT VALUES HERE 
-#
-[ -z "$vmpsd_enable" ] && vmpsd_enable="NO" # Enable vmpsd
-#vmpsd_program="%%PREFIX%%/sbin/vmpsd"       # Location of vmpsd
-[ -z "$vmpsd_flags" ] && vmpsd_flags="-f /usr/local/etc/vmps.db"   # Flags to vmpsd program
 
-. /etc/rc.subr
+: ${vmpsd_enable:=NO}				# Enable vmpsd
+: ${vmpsd_program:=%%PREFIX%%/sbin/vmpsd}	# Location of vmpsd
+: ${vmpsd_flags=-f /usr/local/etc/vmps.db}	# Flags to vmpsd program
 
-name="vmpsd"
-rcvar=vmpsd_enable
-command="%%PREFIX%%/sbin/${name}"
+command=%%PREFIX%%/sbin/${name}
 
-load_rc_config $name
-run_rc_command "$1"
+run_rc_command $1



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