Revision 10c5c1c3 doc/examples/ganeti.initd.in
b/doc/examples/ganeti.initd.in | ||
---|---|---|
29 | 29 |
|
30 | 30 |
check_exitcode() { |
31 | 31 |
RC=$1 |
32 |
case $RC in |
|
33 |
0) |
|
34 |
log_action_end_msg 0 |
|
35 |
;; |
|
36 |
11) |
|
37 |
log_action_end_msg 0 "not master" |
|
38 |
;; |
|
39 |
*) |
|
40 |
log_action_end_msg 1 "exit code $RC" |
|
41 |
;; |
|
42 |
esac |
|
32 |
|
|
33 |
if errmsg=$($DAEMON_UTIL check-exitcode $RC) |
|
34 |
then |
|
35 |
log_action_end_msg 0 "$errmsg" |
|
36 |
else |
|
37 |
log_action_end_msg 1 "$errmsg" |
|
38 |
fi |
|
43 | 39 |
} |
44 | 40 |
|
45 | 41 |
start_action() { |
Also available in: Unified diff