OpenVZ Forum


Home » General » Support » *DISCUSSION* OVZ command to start/stop VE based on status.
Re: OVZ command to start/stop VE based on status. [message #14730 is a reply to message #14722] Mon, 09 July 2007 10:00 Go to previous messageGo to previous message
n00b_admin is currently offline  n00b_admin
Messages: 77
Registered: July 2006
Location: Romania
Member
You could write a bash script that does this...

I don't think is very hard...

You look into /etc/vz/conf dir and construct a loop that searches config files and you read the veid from the filename.

After that you grep a status command on that veid and take the action that you want depending of the status.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *BUG REPORTED* vzmigrate with NFS
Next Topic: *KNOWN ISSUE* Problems with online migration on 031 kernel
Goto Forum:
  


Current Time: Thu Oct 17 08:54:24 GMT 2024

Total time taken to generate the page: 0.05212 seconds