projects
/
sysadmin-cookbook
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d130ee8
)
added boot and disable
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 16 Mar 2010 22:00:20 +0000
(22:00 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 16 Mar 2010 22:00:20 +0000
(22:00 +0000)
git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@188
191e9f34
-6774-4a6d-acfc-
7664dacd4a2a
recepies/lxc/lxc-watchdog.sh
patch
|
blob
|
history
diff --git
a/recepies/lxc/lxc-watchdog.sh
b/recepies/lxc/lxc-watchdog.sh
index
ec16319
..
0c81916
100755
(executable)
--- a/
recepies/lxc/lxc-watchdog.sh
+++ b/
recepies/lxc/lxc-watchdog.sh
@@
-184,6
+184,12
@@
reload|force-reload|restart|reboot)
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
@@
esac
}
command=$1
-shift
test "$command" = "status" && lxc_status && exit
@@
-204,6
+209,7
@@
if [ -z "$1" ] ; then
command_on_lxc $command $name
done
else
+ shift
while [ ! -z "$1" ] ; do
command_on_lxc $command $1
shift