Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
synnefo
Commits
78dfb24f
Commit
78dfb24f
authored
Oct 17, 2011
by
Constantinos Venetsanopoulos
Committed by
Kostas Papadimitriou
Oct 26, 2011
Browse files
Fix in snf-ganeti-eventd init script
Saner check of the ganeti master. Provided by [costasd] Refs #1323
parent
bf83ef31
Changes
1
Hide whitespace changes
Inline
Side-by-side
snf-ganeti-tools/conf/init.d/snf-ganeti-eventd
View file @
78dfb24f
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment