From 9164cec92180f1aba224a9443bc7add2614d45f8 Mon Sep 17 00:00:00 2001 From: Guido Trotter Date: Mon, 3 Aug 2009 18:13:44 +0100 Subject: [PATCH] init script: handle ganeti-confd as well Adding ganeti-confd to the example init script. The daemon itself will only start on master candidates, but the init script can just try to start it on all nodes. Signed-off-by: Guido Trotter Reviewed-by: Iustin Pop --- doc/examples/ganeti.initd.in | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/doc/examples/ganeti.initd.in b/doc/examples/ganeti.initd.in index d09ac73..cb56cb4 100644 --- a/doc/examples/ganeti.initd.in +++ b/doc/examples/ganeti.initd.in @@ -28,6 +28,11 @@ MASTERD="@PREFIX@/sbin/${MASTERD_NAME}" MASTERD_PID="${GANETIRUNDIR}/${MASTERD_NAME}.pid" MASTERD_ARGS="" +CONFD_NAME="ganeti-confd" +CONFD="@PREFIX@/sbin/${CONFD_NAME}" +CONFD_PID="${GANETIRUNDIR}/${CONFD_NAME}.pid" +CONFD_ARGS="" + RAPI_NAME="ganeti-rapi" RAPI="@PREFIX@/sbin/${RAPI_NAME}" RAPI_PID="${GANETIRUNDIR}/${RAPI_NAME}.pid" @@ -95,22 +100,26 @@ case "$1" in check_config start_action $NODED $NODED_PID $NODED_ARGS start_action $MASTERD $MASTERD_PID $MASTERD_ARGS + start_action $CONFD $CONFD_PID $CONFD_ARGS start_action $RAPI $RAPI_PID $RAPI_ARGS ;; stop) log_daemon_msg "Stopping $DESC" "$NAME" stop_action $RAPI $RAPI_PID stop_action $MASTERD $MASTERD_PID + stop_action $CONFD $CONFD_PID stop_action $NODED $NODED_PID ;; restart|force-reload) log_daemon_msg "Reloading $DESC" stop_action $RAPI $RAPI_PID stop_action $MASTERD $MASTERD_PID + stop_action $CONFD $CONFD_PID stop_action $NODED $NODED_PID check_config start_action $NODED $NODED_PID $NODED_ARGS start_action $MASTERD $MASTERD_PID $MASTERD_ARGS + start_action $CONFD $CONFD_PID $CONFD_ARGS start_action $RAPI $RAPI_PID $RAPI_ARGS ;; *) -- 1.7.10.4