Lines 67-82
EOF
Link Here
|
67 |
for name in "$@" |
67 |
for name in "$@" |
68 |
do |
68 |
do |
69 |
if is_instance $name ; then |
69 |
if is_instance $name ; then |
70 |
if is_enabled $name ; then |
70 |
if is_zebra_running $name; then |
71 |
if is_zebra_running $name; then |
71 |
if ! stop_zebra_instance $name; then |
72 |
if ! stop_zebra_instance $name; then |
72 |
warn "Something went wrong stopping Zebra for $name." |
73 |
warn "Something went wrong stopping Zebra for $name." |
|
|
74 |
fi |
75 |
else |
76 |
warn "Zebra already stopped for instance $name." |
77 |
fi |
73 |
fi |
78 |
else |
74 |
else |
79 |
warn "Instance $name disabled. No action taken." |
75 |
warn "Zebra already stopped for instance $name." |
80 |
fi |
76 |
fi |
81 |
else |
77 |
else |
82 |
warn "Unknown instance $name." |
78 |
warn "Unknown instance $name." |
83 |
- |
|
|