projects
/
sysadmin-cookbook
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e879cef
)
give container 5 seconds to start more than one process
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 16 Mar 2010 20:53:59 +0000
(20:53 +0000)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Tue, 16 Mar 2010 20:53:59 +0000
(20:53 +0000)
git-svn-id: svn://svn.rot13.org/sysadmin-cookbook@186
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
d8c87a1
..
7618217
100755
(executable)
--- a/
recepies/lxc/lxc-watchdog.sh
+++ b/
recepies/lxc/lxc-watchdog.sh
@@
-167,7
+167,8
@@
start)
setup_inittab $1 ::power "p0::powerfail:/sbin/init 0"
setup_inittab $1 ::ctrlaltdel "p6::ctrlaltdel:/sbin/init 6"
lxc_start $1
- ( nohup $0 watchdog $1 >> /tmp/$1.log 2>/dev/null ) &
+ # give container 5 seconds to start more than one process
+ ( sleep 5 ; nohup $0 watchdog $1 >> /tmp/$1.log 2>/dev/null ) &
;;
stop|halt)
lxc_exists $1