From: Daniel Hokka Zakrisson Date: Tue, 11 Dec 2007 18:45:22 +0000 (+0000) Subject: setrunlevel takes a filename and a runlevel. X-Git-Tag: util-vserver-pl-0.1-1~8 X-Git-Url: http://git.onelab.eu/?p=util-vserver-pl.git;a=commitdiff_plain;h=a24a238a20efb2b58e8f90ee21932622c2ce64ab;ds=sidebyside setrunlevel takes a filename and a runlevel. --- 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")