aboutsummaryrefslogtreecommitdiffstats
path: root/net/openmq
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2012-01-14 16:57:23 +0800
committerDoug Barton <dougb@FreeBSD.org>2012-01-14 16:57:23 +0800
commit83eb2c37009874672764765ec3bf3b59286c7391 (patch)
treea956ace1a4a1e10876d4c36f12af02bc9df6cb29 /net/openmq
parent3c1484f2613137d7eaba8577f6d580c5532ac912 (diff)
downloadfreebsd-ports-gnome-83eb2c37009874672764765ec3bf3b59286c7391.tar.gz
freebsd-ports-gnome-83eb2c37009874672764765ec3bf3b59286c7391.tar.zst
freebsd-ports-gnome-83eb2c37009874672764765ec3bf3b59286c7391.zip
In the rc.d scripts, change assignments to rcvar to use the
literal name_enable wherever possible, and ${name}_enable when it's not, to prepare for the demise of set_rcvar(). In cases where I had to hand-edit unusual instances also modify formatting slightly to be more uniform (and in some cases, correct). This includes adding some $FreeBSD$ tags, and most importantly moving rcvar= to right after name= so it's clear that one is derived from the other.
Diffstat (limited to 'net/openmq')
-rw-r--r--net/openmq/files/imq.in9
1 files changed, 5 insertions, 4 deletions
diff --git a/net/openmq/files/imq.in b/net/openmq/files/imq.in
index b7e82f832717..3036f9b83c61 100644
--- a/net/openmq/files/imq.in
+++ b/net/openmq/files/imq.in
@@ -40,17 +40,18 @@
# imq_brokerlist="hostname1:7676,hostname2:7676"
# imq_memory="256m"
-name="imq"
. /etc/rc.subr
-# set defaults
+name="imq"
+rcvar=imq_enable
+
+load_rc_config $name
+
imq_enable=${imq_enable:-"NO"}
imq_data=${imq_data:-"/var/spool/imq"}
imq_vmargs=${imq_vmargs:-"-Xms150m -Xss128k -Xbatch -XX:MaxGCPauseMillis=5000"}
imq_memory=${imq_memory:-"256m"}
-rcvar=`set_rcvar`
-load_rc_config $name
pidfile=/var/run/imq.pid
start_cmd="${name}_start"
start_precmd="${name}_build_cmdline"