--- recepies/lxc/lxc-watchdog.sh 2010/03/16 19:59:41 183 +++ recepies/lxc/lxc-watchdog.sh 2010/03/16 20:42:38 184 @@ -1,13 +1,20 @@ -#!/bin/sh +#! /bin/sh +### BEGIN INIT INFO +# Provides: lxc-watchdog +# Required-Start: $remote_fs $named $network $time +# Required-Stop: $remote_fs $named $network +# Required-Start: +# Required-Stop: +# Default-Start: 2 3 4 5 +# Default-Stop: 0 1 6 +# Short-Description: Manage Linux Containers startup/shutdown +# Description: Uses clever inotify hack to monitor container's +# halt/reboot events watching /var/run/utmp +### END INIT INFO -# lxc-watchdog.sh -# -# Dobrica Pavlinusic 2010-03-15 -# -# this script can be used to start/stop Linux containers -# using clever inotify hack to monitor halt/reboot from -# Tony Risinger posted to lxc-users mailing list +# Author: Dobrica Pavlinusic # +# based on Tony Risinger post to lxc-users mailing list # http://www.mail-archive.com/lxc-users@lists.sourceforge.net/msg00074.html