Kill remaining qubesdb-daemon instances after shutting down all the VMs

It may happen (especially when VM doesn't close cleanly and needs to be
killed) that qubesdb-daemon will not notice VM shutdown immediately.
Normally it would stop after 60s timeout, but speed it up in case of
system shutdown

QubesOS/qubes-issues#1425
This commit is contained in:
Marek Marczykowski-Górecki 2015-11-14 23:43:38 +01:00
parent 7359e394bc
commit bae493d015
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -9,6 +9,9 @@ StandardOutput=syslog
RemainAfterExit=yes
ExecStart=/usr/lib/qubes/startup-misc.sh
ExecStop=/usr/bin/qvm-shutdown -q --all --wait
# QubesDB daemons stop after 60s timeout in worst case; speed it up, since no
# VMs are running now
ExecStop=-/usr/bin/killall qubesdb-daemon
[Install]
WantedBy=multi-user.target