/[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 179 by dpavlin, Tue Mar 16 15:33:30 2010 UTC revision 180 by dpavlin, Tue Mar 16 16:18:40 2010 UTC
# Line 38  fi Line 38  fi
38    
39  if [ "$2" == "stop" ] ; then  if [ "$2" == "stop" ] ; then
40          echo "$name stop"          echo "$name stop"
41          kill -SIGPWR `head -1 /cgroup/$name/tasks`          kill -SIGPWR `lxc-ps -C init -o pid | grep "^$name" | cut -d" " -f2-`
42          lxc-wait -n $name -s STOPPED          lxc-wait -n $name -s STOPPED
43          exit          exit
44  fi  fi

Legend:
Removed from v.179  
changed lines
  Added in v.180

  ViewVC Help
Powered by ViewVC 1.1.26