core-admin/core-modules
Marek Marczykowski-Górecki dd1bea98e1
core/start: ensure that the previous QubesDB daemon isn't running
When restarting VM (starting it just after it was shut down), it may
happen that previous `qubesdb-daemon` instance is still running - if VM
doesn't properly terminate the connection, dom0 part will not terminate
immediately, but at next alive check (every 10s). Such `qubesdb-daemon`,
when terminating, will remove pid file and socket file. In case of new
daemon already running it would be those of the new daemon, making the
whole QubesDB of this VM inaccessible for dom0 (`qubesdb-daemon` is
running, but its socket is removed).

To prevent this race, ensure that previous instance is terminated before
starting the new one.
There is no need to manually removing socket file, because if some stale
socket exists, it will be replaced by the new one when new
`qubesdb-daemon` starts up.

QubesOS/qubes-issues#1241
2015-09-25 22:06:14 +02:00
..
__init__.py Move all files one level up 2013-03-16 19:56:51 +01:00
01QubesAppVm.py Declare file encoding for all python files, fill missing copyright headers 2014-05-18 21:03:27 +02:00
01QubesDisposableVm.py core: fix vm-persistence info for DispVM 2015-09-03 21:11:43 +02:00
01QubesHVm.py core/hvm: check if VM serving cdrom content is running 2015-07-25 04:17:59 +02:00
02QubesTemplateHVm.py core: add dummy QubesTemplateHVm.commit_changes 2015-02-22 03:53:51 +01:00
000QubesVm.py core/start: ensure that the previous QubesDB daemon isn't running 2015-09-25 22:06:14 +02:00
003QubesTemplateVm.py core/modules: debug important VM changes 2015-02-19 21:32:43 +01:00
005QubesNetVm.py core/modules: debug important VM changes 2015-02-19 21:32:43 +01:00
006QubesAdminVm.py core: store dom0 info in qubes.xml 2015-04-28 15:00:50 +02:00
006QubesProxyVm.py core: add offline mode to qvm-create, qvm-prefs 2015-08-01 21:58:38 +02:00
Makefile rpm+makefile: move build/install code to Makefile files 2014-11-19 12:50:24 +01:00
README.txt Move all files one level up 2013-03-16 19:56:51 +01:00

This directory contains Qubes core modules. It will be loaded in
lexicographical order, use numeric prefix to force load ordering.

0* - Qubes base modules
00* - Qubes core VM classes