Free Hosting Online for WorkStations

< Previous | Contents | Next >

6.14.2. Monitoring container status


Two commands are available to monitor container state changes. lxc-monitor monitors one or more containers for any state changes. It takes a container name as usual with the -n option, but in this case the container name can be a posix regular expression to allow monitoring desirable sets of containers. lxc- monitor continues running as it prints container changes. lxc-wait waits for a specific state change and then exits. For instance,


sudo lxc-monitor -n cont[0-5]*


would print all state changes to any containers matching the listed regular expression, whereas



sudo lxc-wait -n cont1 -s 'STOPPED|FROZEN'


Top OS Cloud Computing at OnWorks: