aboutsummaryrefslogtreecommitdiffstats
path: root/main/xen/xendomains.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2013-05-17 13:03:16 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2013-05-17 13:03:16 +0000
commitd432e270eaa3c2ab8d7af432e3b7dfdb088bf268 (patch)
tree562a0a0bdbb8de1369ec401f3f797057d290776b /main/xen/xendomains.initd
parent649d46a9499ae9a8c7082cc20c1576b47fc88a64 (diff)
downloadaports-d432e270eaa3c2ab8d7af432e3b7dfdb088bf268.tar.bz2
aports-d432e270eaa3c2ab8d7af432e3b7dfdb088bf268.tar.xz
main/xen: misc fixes for xendomains init.d script
- we need create the parent dirs for SCREENDIR - sync the need/after deps with gentoo
Diffstat (limited to 'main/xen/xendomains.initd')
-rw-r--r--main/xen/xendomains.initd7
1 files changed, 5 insertions, 2 deletions
diff --git a/main/xen/xendomains.initd b/main/xen/xendomains.initd
index 794a78697f..27464c6856 100644
--- a/main/xen/xendomains.initd
+++ b/main/xen/xendomains.initd
@@ -6,8 +6,8 @@
extra_commands="status"
depend() {
- need xenstored xenconsoled
- after dhcp
+ need xenstored
+ after dhcp xend xenconsoled
}
get_domname() {
@@ -30,6 +30,9 @@ using_screen() {
set_screen_cmd() {
export SCREENDIR=${SCREENDIR:-/tmp/screens/S-root}
+ # create the parent dirs
+ mkdir -p "$SCREENDIR"
+ # set permissions
checkpath -d -m 700 "$SCREENDIR"
screen_cmd="screen -c ${SCREENRC:-/dev/null} -q -r ${SCREEN_NAME:=xen} -X"
}