From a24a238a20efb2b58e8f90ee21932622c2ce64ab Mon Sep 17 00:00:00 2001 From: Daniel Hokka Zakrisson Date: Tue, 11 Dec 2007 18:45:22 +0000 Subject: [PATCH] setrunlevel takes a filename and a runlevel. --- python/vserver.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/python/vserver.py b/python/vserver.py index c201bc7..590ec1b 100644 --- a/python/vserver.py +++ b/python/vserver.py @@ -391,9 +391,7 @@ class VServer: os.unlink(f) # set the initial runlevel - f = open(RUNDIR + "/utmp", "w") - vserverimpl.setrunlevel(f, runlevel) - f.close() + vserverimpl.setrunlevel(RUNDIR + "/utmp", runlevel) # mount /proc and /dev/pts self.__do_mount("none", self.dir, "/proc", "proc") -- 2.43.0