Commit 78dfb24f authored by Constantinos Venetsanopoulos's avatar Constantinos Venetsanopoulos Committed by Kostas Papadimitriou
Browse files

Fix in snf-ganeti-eventd init script

Saner check of the ganeti master. Provided by
[costasd] Refs #1323
parent bf83ef31
......@@ -57,15 +57,15 @@ eventd_start() {
MASTER=`/usr/sbin/gnt-cluster getmaster`
HOST=`/bin/hostname -f`
if [ "x$MASTER" != x$HOST ]] ;
then
log_warning_msg "snf-ganeti-eventd should run on the ganeti master only, aborting"
log_end_msg 0
exit 0
fi
case "$1" in
start)
if [ "x$MASTER" != x$HOST ] ; then
log_warning_msg "snf-ganeti-eventd should run on the ganeti master only, aborting"
log_end_msg 0
exit 0
fi
if "$SNF_EVENTD_ENABLE"; then
log_daemon_msg "Starting snf-ganeti-eventd daemon" "snf-ganeti-eventd"
if [ -s $SNF_EVENTD_PID_FILE ] && kill -0 $(cat $SNF_EVENTD_PID_FILE) >/dev/null 2>&1; then
......
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