--- recepies/lxc/lxc-watchdog.sh 2010/03/16 14:52:56 177 +++ recepies/lxc/lxc-watchdog.sh 2010/03/16 15:06:30 178 @@ -16,6 +16,11 @@ rootfs=`grep lxc.rootfs /var/lib/lxc/$name/config | cut -d= -f2` echo "$name rootfs $rootfs" +# cleanup init scripts which don't work in containers +ls $rootfs/etc/rc?.d/*umountfs 2>/dev/null | xargs -i rm -v {} +ls $rootfs/etc/rc?.d/*umountroot 2>/dev/null | xargs -i rm -v {} +ls $rootfs/etc/rc?.d/*hwclock* 2>/dev/null | xargs -i rm -v {} + lxc-info -n $name | grep RUNNING || lxc-start -d -n $name -o /tmp/${name}.log && echo "$name start" while true; do