--- recepies/lxc/lxc-watchdog.sh 2010/03/16 21:36:45 187 +++ recepies/lxc/lxc-watchdog.sh 2010/03/16 22:00:20 188 @@ -184,6 +184,12 @@ watchdog) lxc_watchdog $1 ;; +boot) + echo $1 > /var/lib/lxc/$1/on_boot + ;; +disable) + echo -n > /var/lib/lxc/$1/on_boot + ;; *) echo "Usage: $0 {start|stop|restart|status}" >&2 exit 3 @@ -194,7 +200,6 @@ } command=$1 -shift test "$command" = "status" && lxc_status && exit @@ -204,6 +209,7 @@ command_on_lxc $command $name done else + shift while [ ! -z "$1" ] ; do command_on_lxc $command $1 shift