-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 trueriver: > Chris L recently showed me how to touch files in a VM to enable a > standard service to start, in that case NetworkManager > > https://groups.google.com/forum/#!topic/qubes-users/0_LUn4ha8Jg > > I now want to do something similar with MySQL. I want to install it > in a template, but have it actually start in only one of the AppVMs > based on that. > > Exactly what do I need to do in the template to activate the > "conditionality" of the service start?
Assuming that you want conditional mysql.service startup, you can create /etc/systemd/system/mysql.service.d/ in the template and save some .conf file there (e.g. condition.conf) containing: [Unit] ConditionPathExists=/var/run/qubes-service/mysql After=qubes-sysinit.service Then run 'systemctl enable mysql.service' in the template, shut it down, and enable the mysql Qubes service (in the Services tab of Qube Settings for the VM, or by running 'qvm-service --enable thevm mysql' in a dom0 terminal). > Secondly, nothing ever shows up in the Qubes Settings tab for > Services. It looks like it is designed to cover exactly this case, > but there is never anything there to display or to enable with the > big friendly green plus sign. > > Is this a bug in Qubes, or a bug in my understanding? You have to enter it manually. Qubes services don't necessarily relate to systemd services unless there's some configuration like the above, e.g. [/usr]/lib/systemd/system/NetworkManager.service.d/30_qubes.conf which is shipped in Qubes by default. Rusty -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJbeaUiXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ4NEI1OUJDRkM2MkIxMjlGRTFCMDZEMDQ0 NjlENzhGNDdBQUYyQURGAAoJEEadePR6ryrff3YP/3WEfo1qIg/+8dat756zM0ay oJQnXSSC9tVwUNhVGkoHl6353vv4dYQdUpKrtGemSQaN49KWuRgVIsxSYp0Bsk5P Sx3FD59CKa622VBp2Y4Qifp+nfK71lO1DTAKpzTy1Jr9a7CJPzMSY4cUiaJlnO/2 iivGxxX5sFU2wGSv3k9KUYiJt2jwfIaN/Bt1ZVooWDoqBH7le47yN/3Ss7cPMDnL 6l6pie6zionEVLstXhZ6jblzfiGcKoOnnd2J4fWy6YtjUoBZV7vV7fDu8M6C2ROU /CFFkL8KxkFaguEbWlMx4Av1ZfVuIvDg4IieKPQlEJtULwgz1SDo6Yi1BinDyjMy ++3TwJYTidhKkuCdTJ/ajfXE8woYsh0bwdMTg+p02pNjQMBnG7v3QadKOziW7JTJ R8tmSXMRSkyqbXvDRxT4WSmUFmjtyqZm0Qn7blk1jshIRn72chg/Mcjb7oinZIre LpckcSQRz3BiQp2I3GvVaBTOOBYr7owhRCgwHkX8V5A7EC4u9eVpOY/MnvIV6ZmO RdJYsqFIsMIuD70/gd1SlTkUZihJcXgxlX6Yalf2CJjGYxkE1/F2dRfa/XAuFONx poRwHmErzaTZdePsufHlkMdLhclJFV0ZQC14zTJ6mFloNFwrPWgPXpmKi1JfIUQD ZTaT5F+035bHdod3ov2T =XKQr -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "qubes-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to qubes-users+unsubscr...@googlegroups.com. To post to this group, send email to qubes-users@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/20180819171306.GA921%40mutt. For more options, visit https://groups.google.com/d/optout.