Commit 503c0e27 authored by Vangelis Koukis's avatar Vangelis Koukis
Browse files

Fix init script for eventd failing on non-master

Fix init script failing on nodes other than the Ganeti master,
make it issue a warning instead.

Also fix the LSB Default-Stop entry.

Refs #1323
parent 7289c097
......@@ -5,7 +5,7 @@
# Required-Start: $remote_fs $syslog ganeti
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop:
# Default-Stop: 0 1 6
# X-Start-After: ganeti
# Short-Description: Synnefo ganeti-eventd daemon
# Description: ganeti-eventd is a daemon
......@@ -59,8 +59,9 @@ MASTER=`/usr/sbin/gnt-cluster getmaster`
HOST=`/bin/hostname -f`
if [ "x$MASTER" != x$HOST ]] ;
then
log_failure_msg "snf-ganeti-eventd should run on the ganeti master only"
exit 1
log_warning_msg "snf-ganeti-eventd should run on the ganeti master only, aborting"
log_end_msg 0
exit 0
fi
case "$1" in
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment