37 lines
1.0 KiB
Desktop File
37 lines
1.0 KiB
Desktop File
[Unit]
|
|
Description=xencommons
|
|
ConditionPathExists=/proc/xen/capabilities
|
|
|
|
# Avoid errors from systemd-modules-load.service
|
|
Requires=xen-dom0-modules.service
|
|
After=xen-dom0-modules.service
|
|
|
|
# Pull in all upstream service files
|
|
Requires=proc-xen.mount
|
|
After=proc-xen.mount
|
|
Requires=xenstored.service
|
|
After=xenstored.service
|
|
Requires=xenconsoled.service
|
|
After=xenconsoled.service
|
|
Requires=xen-init-dom0.service
|
|
After=xen-init-dom0.service
|
|
Requires=xen-qemu-dom0-disk-backend.service
|
|
After=xen-qemu-dom0-disk-backend.service
|
|
|
|
# Make sure network (for bridge) and remote mounts (for xendomains) are available ...
|
|
After=network-online.target
|
|
After=remote-fs.target
|
|
|
|
# ... for libvirt and xendomains
|
|
Before=xendomains.service libvirtd.service
|
|
|
|
[Service]
|
|
Type=oneshot
|
|
RemainAfterExit=true
|
|
ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities
|
|
ExecStart=/usr/bin/xenstore-ls -f
|
|
ExecStartPost=/bin/sh -c 'mv -vf /var/log/xen/xen-boot.log /var/log/xen/xen-boot.prev.log ; /usr/sbin/xl dmesg > /var/log/xen/xen-boot.log'
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|