2013-01-27 00:04:40 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Qubes Dom0 startup setup
|
2017-10-28 22:42:59 +02:00
|
|
|
After=qubes-db-dom0.service libvirtd.service xenconsoled.service qubesd.service qubes-qmemman.service
|
2013-01-27 00:04:40 +01:00
|
|
|
# Cover legacy init.d script
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=oneshot
|
2013-02-12 01:37:04 +01:00
|
|
|
StandardOutput=syslog
|
2013-01-27 00:04:40 +01:00
|
|
|
RemainAfterExit=yes
|
2017-03-14 15:34:57 +01:00
|
|
|
# Needed to avoid rebooting before all VMs have shut down.
|
|
|
|
TimeoutStopSec=180
|
2013-01-27 00:04:40 +01:00
|
|
|
ExecStart=/usr/lib/qubes/startup-misc.sh
|
|
|
|
ExecStop=/usr/bin/qvm-shutdown -q --all --wait
|
2015-11-14 23:43:38 +01:00
|
|
|
# QubesDB daemons stop after 60s timeout in worst case; speed it up, since no
|
|
|
|
# VMs are running now
|
|
|
|
ExecStop=-/usr/bin/killall qubesdb-daemon
|
2013-01-27 00:04:40 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
2017-05-31 04:28:45 +02:00
|
|
|
Also=qubes-meminfo-writer-dom0.service qubes-qmemman.service
|
2013-01-27 00:04:40 +01:00
|
|
|
Alias=qubes_core.service
|