OpenVZ Forum


Home » General » Support » *SOLVED* vzctl restart from crontab
Re: vzctl restart from crontab [message #14642 is a reply to message #14612] Wed, 04 July 2007 06:13 Go to previous messageGo to previous message
boredbadger is currently offline  boredbadger
Messages: 4
Registered: July 2007
Junior Member
Try forking the script into the background rather than making crond wait for the command to finish by adding a &.

*/2 * * * * /usr/sbin/vzctl restart 666 & >>/tmp/log 2>&1

That should force it to work in the background so you shouldn't get a time out.

Neil

[Updated on: Wed, 04 July 2007 06:13]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Multicast between VEs
Next Topic: *SOLVED* Disk quota exceeded
Goto Forum:
  


Current Time: Wed Aug 14 09:08:08 GMT 2024

Total time taken to generate the page: 0.02790 seconds