/[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 237 by dpavlin, Wed Jan 26 18:56:17 2011 UTC revision 243 by dpavlin, Thu Mar 24 16:40:46 2011 UTC
# Line 133  lxc_start() { Line 133  lxc_start() {
133    
134          if ! lxc-info -n $name | grep RUNNING ; then          if ! lxc-info -n $name | grep RUNNING ; then
135                  lxc_log "$name start"                  lxc_log "$name start"
136                    mount $rootfs -o remount,rw # fix debian upgrade which remounts dir ro
137                  lxc-start -n $name -o /tmp/${name}.log -d                  lxc-start -n $name -o /tmp/${name}.log -d
138                  lxc-wait  -n $name -s RUNNING                  lxc-wait  -n $name -s RUNNING
139                  lxc-info  -n $name                  lxc-info  -n $name

Legend:
Removed from v.237  
changed lines
  Added in v.243

  ViewVC Help
Powered by ViewVC 1.1.26