[CRIU] [PATCH 2/5] p.haul: remove pidfile manipulations in VZ module
    Nikita Spiridonov 
    nspiridonov at odin.com
       
    Tue Jun 30 07:18:27 PDT 2015
    
    
  
Virtuozzo don't hold containers root task pid in pidfile, this
information can be acquired using cgroups instead. So we don't need
to create pidfile on destination side during restore.
Signed-off-by: Nikita Spiridonov <nspiridonov at odin.com>
---
 phaul/p_haul_vz.py |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
diff --git a/phaul/p_haul_vz.py b/phaul/p_haul_vz.py
index 7f41816..96c824f 100644
--- a/phaul/p_haul_vz.py
+++ b/phaul/p_haul_vz.py
@@ -15,7 +15,6 @@ vz_dir = "/vz"
 vzpriv_dir = "%s/private" % vz_dir
 vzroot_dir = "%s/root" % vz_dir
 vz_conf_dir = "/etc/vz/conf/"
-vz_pidfiles = "/var/lib/vzctl/vepid/"
 cg_image_name = "ovzcg.img"
 
 class p_haul_type:
@@ -160,11 +159,6 @@ class p_haul_type:
 		return None
 
 	def restored(self, pid):
-		print "Writing pidfile"
-		pidfile = open(os.path.join(vz_pidfiles, self._ctid), 'w')
-		pidfile.write("%d" % pid)
-		pidfile.close()
-
 		self.__apply_cg_config()
 
 	def net_lock(self):
-- 
1.7.1
    
    
More information about the CRIU
mailing list