qports/qubes-vm-qrexec/qubes-qrexec-agent.openrc

23 lines
553 B
Text
Raw Permalink Normal View History

#!/sbin/openrc-run
name=$RC_SVCNAME
cfgfile="/etc/qubes/$RC_SVCNAME.conf"
command="/usr/lib/qubes/qrexec-agent"
command_args=""
command_user="root"
pidfile="/run/qubes/$RC_SVCNAME.pid"
start_stop_daemon_args=""
command_background="yes"
output_log="/var/log/qubes/$RC_SVCNAME.log"
error_log="/var/log/qubes/$RC_SVCNAME.err"
depend() {
need xendriverdomain
}
start_pre() {
/bin/sh -c '[ -e /dev/xen/evtchn ] || modprobe xen_evtchn'
checkpath --directory --owner $command_user:qubes --mode 0775 \
/run/qubes /var/log/qubes
}