git://git.onelab.eu
/
util-vserver-pl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4710e41
)
setrunlevel takes a filename and a runlevel.
author
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Tue, 11 Dec 2007 18:45:22 +0000
(18:45 +0000)
committer
Daniel Hokka Zakrisson
<dhokka@cs.princeton.edu>
Tue, 11 Dec 2007 18:45:22 +0000
(18:45 +0000)
python/vserver.py
patch
|
blob
|
history
diff --git
a/python/vserver.py
b/python/vserver.py
index
c201bc7
..
590ec1b
100644
(file)
--- 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")