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 <[email protected]> --- doc/examples/ganeti.initd.in | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/doc/examples/ganeti.initd.in b/doc/examples/ganeti.initd.in index a591be6..9a2a816 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_DEFAULT_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" -- 1.5.6.5
