Reset internal state (limits_changed) of a vserver when the sliver is
Marc Fiuczynski [Thu, 10 May 2007 22:39:14 +0000 (22:39 +0000)]
  started or stopped.

python/vserver.py

index 9c967ee..6de72cb 100644 (file)
@@ -377,8 +377,8 @@ class VServer:
         self.__do_chcontext(state_file)
 
     def start(self, wait, runlevel = 3):
-
         self.vm_running = True
+        self.limits_changed = False
 
         child_pid = os.fork()
         if child_pid == 0:
@@ -469,9 +469,9 @@ class VServer:
         return size
 
     def stop(self, signal = signal.SIGKILL):
-
         vserverimpl.killall(self.ctx, signal)
         self.vm_running = False
+        self.limits_changed = False