summaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorChris Rees <crees@FreeBSD.org>2012-11-10 15:58:37 +0000
committerChris Rees <crees@FreeBSD.org>2012-11-10 15:58:37 +0000
commit8d9d0941722987847e56bcd94b3a6444e76ef2ce (patch)
tree01ae94f74b3050a2a93faee57b0a534a4ec97060 /net-mgmt
parentUpdate to version 1.4.04 (diff)
Fix rc file order to respect defaults correctly, style nits and stop
calling test where expressions will do. Feature safe: yes
Notes
Notes: svn path=/head/; revision=307290
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/openvmps/files/vmpsd.in23
1 files changed, 12 insertions, 11 deletions
diff --git a/net-mgmt/openvmps/files/vmpsd.in b/net-mgmt/openvmps/files/vmpsd.in
index 49da8c8cacb1..b2ec03358d07 100644
--- a/net-mgmt/openvmps/files/vmpsd.in
+++ b/net-mgmt/openvmps/files/vmpsd.in
@@ -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