--- recepies/lxc/lxc-watchdog.sh 2010/03/16 15:33:30 179 +++ recepies/lxc/lxc-watchdog.sh 2010/03/16 16:18:40 180 @@ -38,7 +38,7 @@ if [ "$2" == "stop" ] ; then echo "$name stop" - kill -SIGPWR `head -1 /cgroup/$name/tasks` + kill -SIGPWR `lxc-ps -C init -o pid | grep "^$name" | cut -d" " -f2-` lxc-wait -n $name -s STOPPED exit fi