From a533e97517d00183005b5ddb44de80aa2d26ea59 Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Tue, 5 May 2009 15:53:37 +0200 Subject: [PATCH] ganeti.initd: include defaults file, if present In the example init script we'll execute an optional defaults file to make it easier to add local customizations to the ganeti startup. Signed-off-by: Guido Trotter <ultrotter@google.com> Reviewed-by: Iustin <iustin@google.com> --- doc/examples/ganeti.initd.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doc/examples/ganeti.initd.in b/doc/examples/ganeti.initd.in index a591be6cd..8ca98ead4 100644 --- a/doc/examples/ganeti.initd.in +++ b/doc/examples/ganeti.initd.in @@ -16,6 +16,8 @@ DESC="Ganeti cluster" GANETIRUNDIR="@LOCALSTATEDIR@/run/ganeti" +GANETI_DEFAULTS_FILE="@SYSCONFDIR@/default/ganeti" + NODED_NAME="ganeti-noded" NODED="@PREFIX@/sbin/${NODED_NAME}" NODED_PID="${GANETIRUNDIR}/${NODED_NAME}.pid" @@ -34,6 +36,10 @@ test -f $NODED || exit 0 . /lib/lsb/init-functions +if [ -s $GANETI_DEFAULTS_FILE ]; then + . $GANETI_DEFAULTS_FILE +fi + check_config() { for fname in \ "@LOCALSTATEDIR@/lib/ganeti/server.pem" -- GitLab