|
@@ -70,10 +70,23 @@ __pids_pidof() {
|
|
|
pidof -c -o $$ -o $PPID -o %PPID "${1##*/}"
|
|
pidof -c -o $$ -o $PPID -o %PPID "${1##*/}"
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+cluster_disabled_at_boot()
|
|
|
|
|
+{
|
|
|
|
|
+ if grep -q nocluster /proc/cmdline && \
|
|
|
|
|
+ [ "$(tty)" = "/dev/console" ]; then
|
|
|
|
|
+ echo -e "not configured to run at boot"
|
|
|
|
|
+ failure
|
|
|
|
|
+ return 1
|
|
|
|
|
+ fi
|
|
|
|
|
+ return 0
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
start()
|
|
start()
|
|
|
{
|
|
{
|
|
|
echo -n "Starting $desc ($prog): "
|
|
echo -n "Starting $desc ($prog): "
|
|
|
|
|
|
|
|
|
|
+ ! cluster_disabled_at_boot && return
|
|
|
|
|
+
|
|
|
# most recent distributions use tmpfs for @LOCALSTATEDIR@/run
|
|
# most recent distributions use tmpfs for @LOCALSTATEDIR@/run
|
|
|
# to avoid to clean it up on every boot.
|
|
# to avoid to clean it up on every boot.
|
|
|
# they also assume that init scripts will create
|
|
# they also assume that init scripts will create
|