Skip to content
Snippets Groups Projects
Commit a533e975 authored by Guido Trotter's avatar Guido Trotter
Browse files

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: default avatarGuido Trotter <ultrotter@google.com>
Reviewed-by: default avatarIustin <iustin@google.com>
parent 84d6ea9b
No related branches found
No related tags found
No related merge requests found
......@@ -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"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment