summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert@lshift.net>2009-02-04 11:45:04 +0000
committerHubert Plociniczak <hubert@lshift.net>2009-02-04 11:45:04 +0000
commit818df525e197ee8b60f058759743f5e83a3771a9 (patch)
tree9130c0badea719e6ba84e7eb3ab8d08b32057ee1
parent817f7532d622d4d0a8a7087c4f9e8f98869b88e4 (diff)
downloadrabbitmq-server-818df525e197ee8b60f058759743f5e83a3771a9.tar.gz
Be consistend in using INITD_ variables in init.d script. Few style fixes in rabbitmq man page.
-rw-r--r--docs/rabbitmq.5.pod14
-rw-r--r--packaging/RPMS/Fedora/init.d4
-rw-r--r--packaging/debs/Debian/debian/init.d4
3 files changed, 11 insertions, 11 deletions
diff --git a/docs/rabbitmq.5.pod b/docs/rabbitmq.5.pod
index 95416ebf..6def4807 100644
--- a/docs/rabbitmq.5.pod
+++ b/docs/rabbitmq.5.pod
@@ -18,18 +18,18 @@ init.d script), from /etc/rabbitmq/rabbitmq.conf and finally from the
built-in default values. For example, for the B<RABBITMQ_NODENAME> setting,
B<RABBITMQ_NODENAME>
- from the environment is checked first. If it is absent or equal to the
- empty string, then
+ from the environment is checked first. If it is absent or equal to
+ the empty string, then
B<INITD_NODENAME>
from /etc/default/rabbitmq is checked next, only if the server is
- started through the standard init.d script. If it is also absent or set
- equal to the empty string, then
+ started through the standard init.d script. If it is also absent or
+ set equal to the empty string, then
B<NODENAME>
- from /etc/rabbitmq/rabbitmq.conf is checked. If that is also absent or
- set equal to the empty string then the default value from the startup
- script is used.
+ from /etc/rabbitmq/rabbitmq.conf is checked. If that is also absent
+ or set equal to the empty string then the default value from
+ the startup script is used.
The variable names in /etc/rabbitmq/rabbitmq.conf are always equal to the
environment variable names, with the B<RABBITMQ_> prefix removed.
diff --git a/packaging/RPMS/Fedora/init.d b/packaging/RPMS/Fedora/init.d
index a006a5a7..473703d7 100644
--- a/packaging/RPMS/Fedora/init.d
+++ b/packaging/RPMS/Fedora/init.d
@@ -21,7 +21,7 @@ DAEMON=/usr/lib/rabbitmq/bin/$DAEMON_NAME
NAME=rabbitmq-server
DESC=rabbitmq-server
USER=rabbitmq
-NODE_COUNT=1
+INITD_NODE_COUNT=1
ROTATE_SUFFIX=
LOCK_FILE=/var/lock/subsys/$NAME
@@ -39,7 +39,7 @@ cd /
start_rabbitmq () {
set +e
- su $USER -s /bin/sh -c "$DAEMON start_all ${NODE_COUNT}" > /var/log/rabbitmq/startup_log 2> /var/log/rabbitmq/startup_err
+ su $USER -s /bin/sh -c "$DAEMON start_all ${INITD_NODE_COUNT}" > /var/log/rabbitmq/startup_log 2> /var/log/rabbitmq/startup_err
case "$?" in
0)
echo SUCCESS && touch $LOCK_FILE
diff --git a/packaging/debs/Debian/debian/init.d b/packaging/debs/Debian/debian/init.d
index 70dd0adf..e11c9a0f 100644
--- a/packaging/debs/Debian/debian/init.d
+++ b/packaging/debs/Debian/debian/init.d
@@ -13,7 +13,7 @@ DAEMON=/usr/lib/rabbitmq/bin/rabbitmq-multi
NAME=rabbitmq-server
DESC=rabbitmq-server
USER=rabbitmq
-NODE_COUNT=1
+INITD_NODE_COUNT=1
ROTATE_SUFFIX=
test -x $DAEMON || exit 0
@@ -29,7 +29,7 @@ cd /
start_rabbitmq () {
set +e
- su $USER -s /bin/sh -c "$DAEMON start_all ${NODE_COUNT}" > /var/log/rabbitmq/startup_log 2> /var/log/rabbitmq/startup_err
+ su $USER -s /bin/sh -c "$DAEMON start_all ${INITD_NODE_COUNT}" > /var/log/rabbitmq/startup_log 2> /var/log/rabbitmq/startup_err
case "$?" in
0)
echo SUCCESS