OpenVZ Forum


Home » General » Support » how to switch off automatic suspend/resume?
Re: how to switch off automatic suspend/resume? [message #48804 is a reply to message #48802] Wed, 05 December 2012 17:01 Go to previous messageGo to previous message
Wireless is currently offline  Wireless
Messages: 9
Registered: August 2010
Junior Member
I just modified /etc/init.d/vz to switch off suspending for a database container.

In the stop_ves() function, in the inner most loop
for stage in $stages; do
  for i in 0 1 2; do
    for veid in $velist; do


added
if [ "$stage" = "suspend" -a "$veid" == "908" ]; then
   echo "Database container $veid will be just stopped"
   continue
fi


So now CTID 908 doesn't get suspended - just stopped.

[Updated on: Wed, 05 December 2012 17:11]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: vzctl suspend problem
Next Topic: How to make broadcasting work in a VE
Goto Forum:
  


Current Time: Thu Oct 17 12:31:26 GMT 2024

Total time taken to generate the page: 0.05373 seconds