Revision 5bb12c7c snf-cyclades-gtools/conf/init.d/snf-ganeti-eventd
b/snf-cyclades-gtools/conf/init.d/snf-ganeti-eventd | ||
---|---|---|
68 | 68 |
|
69 | 69 |
case "$1" in |
70 | 70 |
start) |
71 |
# Check if we are on the Ganeti master node |
|
72 |
check_ganeti_master |
|
73 |
|
|
74 | 71 |
if "$SNF_EVENTD_ENABLE"; then |
75 | 72 |
log_daemon_msg "Starting snf-ganeti-eventd daemon" "snf-ganeti-eventd" |
76 | 73 |
if [ -s $SNF_EVENTD_PID_FILE ] && kill -0 $(cat $SNF_EVENTD_PID_FILE) >/dev/null 2>&1; then |
... | ... | |
78 | 75 |
log_end_msg 0 |
79 | 76 |
exit 0 |
80 | 77 |
fi |
78 |
# Check if we are on the Ganeti master node |
|
79 |
check_ganeti_master |
|
81 | 80 |
eventd_start |
82 | 81 |
else |
83 | 82 |
if [ -s "$SNF_EVENTD_DEFAULTS" ]; then |
Also available in: Unified diff