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>
Showing
- .gitignore 1 addition, 0 deletions.gitignore
- Makefile.am 7 additions, 1 deletionMakefile.am
- NEWS 4 additions, 0 deletionsNEWS
- daemons/daemon-util.in 124 additions, 0 deletionsdaemons/daemon-util.in
- daemons/ganeti-watcher 8 additions, 19 deletionsdaemons/ganeti-watcher
- doc/examples/ganeti.initd.in 22 additions, 41 deletionsdoc/examples/ganeti.initd.in
- lib/backend.py 27 additions, 23 deletionslib/backend.py
- lib/bootstrap.py 3 additions, 10 deletionslib/bootstrap.py
- lib/constants.py 1 addition, 2 deletionslib/constants.py
Loading
Please register or sign in to comment