void-packages/srcpkgs/xen/files/xenstored/run

8 lines
320 B
Bash
Executable File

#!/bin/sh
[ ! -d /run/xen ] && mkdir -p /run/xen
modprobe -q xen-evtchn xen-gnttalloc || exit 1
mountpoint -q /proc/xen || mount -t xenfs xenfs /proc/xen
mountpoint -q /var/lib/xenstored || mount -t tmpfs xenstored /var/lib/xenstored
grep -q control_d /proc/xen/capabilities || exit 1
exec xenstored --verbose --no-fork