2013-01-27 00:04:40 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Qubes Dom0 startup setup
|
2015-11-14 23:29:21 +01:00
|
|
|
After=qubes-db-dom0.service libvirtd.service xenconsoled.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
|
|
|
|
Also=qubes-block-cleaner.service qubes-meminfo-writer.service qubes-qmemman.service
|
|
|
|
Alias=qubes_core.service
|