Revision 98340727 snf-ganeti-tools/conf/init.d/snf-ganeti-eventd
b/snf-ganeti-tools/conf/init.d/snf-ganeti-eventd | ||
---|---|---|
57 | 57 |
|
58 | 58 |
MASTER=`/usr/sbin/gnt-cluster getmaster` |
59 | 59 |
HOST=`/bin/hostname -f` |
60 |
if [ "x$MASTER" != x$HOST ]] ; |
|
61 |
then |
|
62 |
log_warning_msg "snf-ganeti-eventd should run on the ganeti master only, aborting" |
|
63 |
log_end_msg 0 |
|
64 |
exit 0 |
|
65 |
fi |
|
66 | 60 |
|
67 | 61 |
case "$1" in |
68 | 62 |
start) |
63 |
if [ "x$MASTER" != x$HOST ] ; then |
|
64 |
log_warning_msg "snf-ganeti-eventd should run on the ganeti master only, aborting" |
|
65 |
log_end_msg 0 |
|
66 |
exit 0 |
|
67 |
fi |
|
68 |
|
|
69 | 69 |
if "$SNF_EVENTD_ENABLE"; then |
70 | 70 |
log_daemon_msg "Starting snf-ganeti-eventd daemon" "snf-ganeti-eventd" |
71 | 71 |
if [ -s $SNF_EVENTD_PID_FILE ] && kill -0 $(cat $SNF_EVENTD_PID_FILE) >/dev/null 2>&1; then |
Also available in: Unified diff