xen-runit-scripts/xenconsoled.run

18 lines
449 B
Text
Raw Normal View History

2024-07-23 12:54:54 +02:00
#!/bin/sh
set -e
sv s proc-xen > /dev/null || exit 1
sv s xenstored > /dev/null || exit 1
export XENCONSOLED_ARGS=""
export XENCONSOLED_TRACE="none"
export XENCONSOLED_LOG_DIR="/var/log/xen/console"
. /etc/conf.d/xencommons
/bin/grep -q control_d /proc/xen/capabilities || exit 1
/bin/mkdir -p ${XENCONSOLED_LOG_DIR} /run/xen || exit 1
exec /usr/bin/xenconsoled -i --log=${XENCONSOLED_TRACE} --log-dir=${XENCONSOLED_LOG_DIR} $XENCONSOLED_ARGS