mirror of
https://github.com/QubesOS/qubes-doc.git
synced 2025-01-26 06:26:18 -05:00
0c95b3ae4d
This reverts commit 24e6a8a616bfba80534d5d700b2f6b02745561fe. https://github.com/QubesOS/qubes-issues/issues/6701#issuecomment-862060759
841 B
841 B
lang | layout | redirect_from | ref | title | ||||
---|---|---|---|---|---|---|---|---|
en | doc |
|
138 | Qubes Service |
Usage documentation is in the qvm-service
man page. There are also described predefined services.
Under the hood, an enabled service in a VM is signaled by a file in /var/run/qubes-service
.
This can be used to implement an almost enable/disable per-VM switch controlled by dom0.
Adding support for systemd services is pretty simple. In the VM, create the following file (and directory, if needed): /etc/systemd/system/<service name>.service.d/30_qubes.conf
. It should contain the following:
[Unit]
ConditionPathExists=/var/run/qubes-service/<service name>
This will cause the service to be started only when you enable it with qvm-service
for this VM.