--- recepies/lxc/lxc-watchdog.sh 2010/03/16 17:39:28 181 +++ recepies/lxc/lxc-watchdog.sh 2010/03/16 17:46:32 182 @@ -91,9 +91,7 @@ rootfs=$(lxc_rootfs $1) while true; do - # time of 5 minutes on it JUST IN CASE... vps_utmp=${rootfs}/var/run/utmp - inotifywait -qqt 300 ${vps_utmp} tasks=`wc -l < /cgroup/${name}/tasks` test -z "$tasks" && exit 1 if [ "$tasks" -eq 1 ]; then @@ -126,6 +124,9 @@ else echo "# $name $tasks tasks" fi + + # time of 5 minutes on it JUST IN CASE... + inotifywait -qqt 300 ${vps_utmp} done echo "${name} exited"