184 |
watchdog) |
watchdog) |
185 |
lxc_watchdog $1 |
lxc_watchdog $1 |
186 |
;; |
;; |
187 |
|
boot) |
188 |
|
echo $1 > /var/lib/lxc/$1/on_boot |
189 |
|
;; |
190 |
|
disable) |
191 |
|
echo -n > /var/lib/lxc/$1/on_boot |
192 |
|
;; |
193 |
*) |
*) |
194 |
echo "Usage: $0 {start|stop|restart|status}" >&2 |
echo "Usage: $0 {start|stop|restart|status}" >&2 |
195 |
exit 3 |
exit 3 |
200 |
} |
} |
201 |
|
|
202 |
command=$1 |
command=$1 |
|
shift |
|
203 |
|
|
204 |
test "$command" = "status" && lxc_status && exit |
test "$command" = "status" && lxc_status && exit |
205 |
|
|
209 |
command_on_lxc $command $name |
command_on_lxc $command $name |
210 |
done |
done |
211 |
else |
else |
212 |
|
shift |
213 |
while [ ! -z "$1" ] ; do |
while [ ! -z "$1" ] ; do |
214 |
command_on_lxc $command $1 |
command_on_lxc $command $1 |
215 |
shift |
shift |