Author: vines
Date: Tue Apr 23 17:59:08 2013
New Revision: 1471075
URL: http://svn.apache.org/r1471075
Log:
ACCUMULO-792 - slave-only isn't needed anymore and making them quieter
Removed:
accumulo/branches/1.5/assemble/scripts/slave-only-init.sh
Modified:
accumulo/branches/1.5/assemble/scripts/gc-only-init.sh
accumulo/branches/1.5/assemble/scripts/master-only-init.sh
accumulo/branches/1.5/assemble/scripts/monitor-only-init.sh
accumulo/branches/1.5/assemble/scripts/tracer-only-init.sh
accumulo/branches/1.5/assemble/scripts/tserver-only-init.sh
Modified: accumulo/branches/1.5/assemble/scripts/gc-only-init.sh
URL:
http://svn.apache.org/viewvc/accumulo/branches/1.5/assemble/scripts/gc-only-init.sh?rev=1471075&r1=1471074&r2=1471075&view=diff
==============================================================================
--- accumulo/branches/1.5/assemble/scripts/gc-only-init.sh (original)
+++ accumulo/branches/1.5/assemble/scripts/gc-only-init.sh Tue Apr 23 17:59:08
2013
@@ -38,10 +38,10 @@ fi
install -m 0755 -o root -g root init.d/accumulo-gc /etc/init.d/
-if [ -e "`which update-rc.d`" ]; then
+if which update-rc.d >>/dev/null 2>&1; then
update-rc.d accumulo-gc start 21 2 3 4 5 . stop 20 0 1 6 .
-elif [ -e "`which chkconfig`" ]; then
- chkconfig --add accumulo-gc
+elif which chkconfig >>/dev/null 2>&1; then
+ chkconfig --add accumulo-gc
else
echo "No update-rc.d or chkconfig, rc levels not set for accumulo-gc"
fi
Modified: accumulo/branches/1.5/assemble/scripts/master-only-init.sh
URL:
http://svn.apache.org/viewvc/accumulo/branches/1.5/assemble/scripts/master-only-init.sh?rev=1471075&r1=1471074&r2=1471075&view=diff
==============================================================================
--- accumulo/branches/1.5/assemble/scripts/master-only-init.sh (original)
+++ accumulo/branches/1.5/assemble/scripts/master-only-init.sh Tue Apr 23
17:59:08 2013
@@ -37,10 +37,10 @@ if ! id -u accumulo >/dev/null 2>&1; the
fi
install -m 0755 -o root -g root init.d/accumulo-master /etc/init.d/
-if [ -e "`which update-rc.d`" ]; then
+if which update-rc.d >>/dev/null 2>&1; then
update-rc.d accumulo-master start 21 2 3 4 5 . stop 19 0 1 6 .
-elif [ -e "`which chkconfig`" ]; then
- chkconfig --add accumulo-master
+elif which chkconfig >>/dev/null 2>&1; then
+ chkconfig --add accumulo-master
else
echo "No update-rc.d or chkconfig, rc levels not set for accumulo-master"
fi
Modified: accumulo/branches/1.5/assemble/scripts/monitor-only-init.sh
URL:
http://svn.apache.org/viewvc/accumulo/branches/1.5/assemble/scripts/monitor-only-init.sh?rev=1471075&r1=1471074&r2=1471075&view=diff
==============================================================================
--- accumulo/branches/1.5/assemble/scripts/monitor-only-init.sh (original)
+++ accumulo/branches/1.5/assemble/scripts/monitor-only-init.sh Tue Apr 23
17:59:08 2013
@@ -36,9 +36,9 @@ if ! id -u accumulo_monitor >/dev/null 2
fi
install -m 0755 -o root -g root init.d/accumulo-monitor /etc/init.d/
-if [ -e "`which update-rc.d`" ]; then
+if which update-rc.d >>/dev/null 2>&1; then
update-rc.d accumulo-monitor start 21 2 3 4 5 . stop 20 0 1 6 .
-elif [ -e "`which chkconfig`" ]; then
+elif which chkconfig >>/dev/null 2>&1; then
chkconfig --add accumulo-monitor
else
echo "No update-rc.d or chkconfig, rc levels not set for accumulo-monitor"
Modified: accumulo/branches/1.5/assemble/scripts/tracer-only-init.sh
URL:
http://svn.apache.org/viewvc/accumulo/branches/1.5/assemble/scripts/tracer-only-init.sh?rev=1471075&r1=1471074&r2=1471075&view=diff
==============================================================================
--- accumulo/branches/1.5/assemble/scripts/tracer-only-init.sh (original)
+++ accumulo/branches/1.5/assemble/scripts/tracer-only-init.sh Tue Apr 23
17:59:08 2013
@@ -36,9 +36,9 @@ if ! id -u accumulo_tracer >/dev/null 2>
fi
install -m 0755 -o root -g root init.d/accumulo-tracer /etc/init.d/
-if [ -e "`which update-rc.d`" ]; then
+if which update-rc.d >>/dev/null 2>&1; then
update-rc.d accumulo-tracer start 22 2 3 4 5 . stop 20 0 1 6 .
-elif [ -e "`which chkconfig`" ]; then
+elif which chkconfig >>/dev/null 2>&1; then
chkconfig --add accumulo-tracer
else
echo "No update-rc.d or chkconfig, rc levels not set for accumulo-tracer"
Modified: accumulo/branches/1.5/assemble/scripts/tserver-only-init.sh
URL:
http://svn.apache.org/viewvc/accumulo/branches/1.5/assemble/scripts/tserver-only-init.sh?rev=1471075&r1=1471074&r2=1471075&view=diff
==============================================================================
--- accumulo/branches/1.5/assemble/scripts/tserver-only-init.sh (original)
+++ accumulo/branches/1.5/assemble/scripts/tserver-only-init.sh Tue Apr 23
17:59:08 2013
@@ -37,9 +37,9 @@ if ! id -u accumulo >/dev/null 2>&1; the
fi
install -m 0755 -o root -g root init.d/accumulo-tserver /etc/init.d/
-if [ -e "`which update-rc.d`" ]; then
+if which update-rc.d >>/dev/null 2>&1; then
update-rc.d accumulo-tserver start 21 2 3 4 5 . stop 15 0 1 6 .
-elif [ -e "`which chkconfig`" ]; then
+elif which chkconfig >>/dev/null 2>&1; then
chkconfig --add accumulo-tserver
else
echo "No update-rc.d or chkconfig, rc levels not set for accumulo-tserver"