Add new “daemon-util” script to start/stop Ganeti daemons
authorMichael Hanselmann <hansmi@google.com>
Tue, 3 Nov 2009 13:42:51 +0000 (14:42 +0100)
committerMichael Hanselmann <hansmi@google.com>
Thu, 5 Nov 2009 15:36:19 +0000 (16:36 +0100)
commitf154a7a37a0dfb0192fa29a9c906c455a2a9f66b
treee69406ba48d0d8a1b07198299655a77432f7030f
parent86d6bc2a85d835164f6a7b0d9b2a50d3503e3979
Add new “daemon-util” script to start/stop Ganeti daemons

Until now, Ganeti started and stopped its own daemons using custom functions.
To start, the daemon was just executed and then sent the appropriate signals to
stop it again. Init scripts would have to pay attention to the PID file and
other things.

With this patch, a new script is added (“daemon-util”, installed in
$prefix/lib/ganeti/), centralizing the starting and stopping of daemons. The
provided example init script is adjusted to use this new script. Ganeti's code
no longer calls its own init script.

Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Guido Trotter <ultrotter@google.com>
.gitignore
Makefile.am
NEWS
daemons/daemon-util.in [new file with mode: 0755]
daemons/ganeti-watcher
doc/examples/ganeti.initd.in
lib/backend.py
lib/bootstrap.py
lib/constants.py