projects
/
util-vserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
79061bf
)
Create the directories here for strange distros (e.g. Ubuntu).
author
Daniel Hokka Zakrisson
<daniel@hozac.com>
Sun, 18 Mar 2007 11:51:32 +0000 (11:51 +0000)
committer
Daniel Hokka Zakrisson
<daniel@hozac.com>
Sun, 18 Mar 2007 11:51:32 +0000 (11:51 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2513
94cd875c
-1c1d-0410-91d2-
eb244daf1a30
sysv/util-vserver
patch
|
blob
|
history
diff --git
a/sysv/util-vserver
b/sysv/util-vserver
index
84636ba
..
fe0be29
100755
(executable)
--- a/
sysv/util-vserver
+++ b/
sysv/util-vserver
@@
-47,8
+47,16
@@
function kill_contexts()
test $alive = 0
}
+function create_dirs()
+{
+ $_MKDIR -p "$__RUNDIR" && $_MKDIR -p "$__VSHELPERSTATEDIR" && $_MKDIR -p `getPhysicalDir "$__PKGSTATEREVDIR"`
+}
+
function start()
{
+ _beginResult $"Creating required directories"
+ create_dirs
+ _endResult $?
_beginResult $"Setting path to vshelper"
set_helper
_endResult $?