Lines 95-115
EOF
Link Here
|
95 |
for name in "$@" |
95 |
for name in "$@" |
96 |
do |
96 |
do |
97 |
if is_instance $name ; then |
97 |
if is_instance $name ; then |
98 |
if is_enabled $name ; then |
98 |
if ! is_zebra_running $name; then |
|
|
99 |
warn "Zebra does not appear to have been running for instance $name." |
99 |
|
100 |
|
100 |
if ! is_zebra_running $name; then |
101 |
if ! start_zebra_instance $name ; then |
101 |
warn "Zebra does not appear to have been running for instance $name." |
102 |
warn "Something went wrong starting Zebra for $name." |
102 |
|
|
|
103 |
if ! start_zebra_instance $name ; then |
104 |
warn "Something went wrong starting Zebra for $name." |
105 |
fi |
106 |
else |
107 |
if ! restart_zebra_instance $name; then |
108 |
warn "Something went wrong restarting Zebra for $name." |
109 |
fi |
110 |
fi |
103 |
fi |
111 |
else |
104 |
else |
112 |
warn "Instance $name disabled. No action taken." |
105 |
if ! restart_zebra_instance $name; then |
|
|
106 |
warn "Something went wrong restarting Zebra for $name." |
107 |
fi |
113 |
fi |
108 |
fi |
114 |
else |
109 |
else |
115 |
warn "Unknown instance $name." |
110 |
warn "Unknown instance $name." |