/[sysadmin-cookbook]/recepies/lxc/lxc-watchdog.sh
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /recepies/lxc/lxc-watchdog.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 185 by dpavlin, Tue Mar 16 20:51:46 2010 UTC revision 186 by dpavlin, Tue Mar 16 20:53:59 2010 UTC
# Line 167  start) Line 167  start)
167          setup_inittab $1 ::power      "p0::powerfail:/sbin/init 0"          setup_inittab $1 ::power      "p0::powerfail:/sbin/init 0"
168          setup_inittab $1 ::ctrlaltdel "p6::ctrlaltdel:/sbin/init 6"          setup_inittab $1 ::ctrlaltdel "p6::ctrlaltdel:/sbin/init 6"
169          lxc_start $1          lxc_start $1
170          ( nohup $0 watchdog $1 >> /tmp/$1.log 2>/dev/null ) &          # give container 5 seconds to start more than one process
171            ( sleep 5 ; nohup $0 watchdog $1 >> /tmp/$1.log 2>/dev/null ) &
172          ;;          ;;
173  stop|halt)  stop|halt)
174          lxc_exists $1          lxc_exists $1

Legend:
Removed from v.185  
changed lines
  Added in v.186

  ViewVC Help
Powered by ViewVC 1.1.26