January 12, 2020 11:33 AM, "Abel Luck" <[email protected]> wrote:
> The systemd route does seem promising. Thanks. > > If I edited the template vm, I could just put my unit file in > /etc/systemd/system and it would work fine. > > However I'd like to do this for a specific AppVm, so I dropped the unit > file in /usr/local/lib/systemd/system. This file persists across boots > as expected, however systemd doesn't load units from it until I > daemon-reload after boot. > > I suppose this is because /usr/local is symlinked from /rw/usrlocal > sometime after systemd has loaded its units. > > Is there anyway to get systemd to load units from > /usr/local/lib/systemd/system as part of appvm boot? > > ~abel Try putting `systemctl daemon-reload` in rc.local. I haven't tried it, but this should work, as rc.local itself resides on /rw, so /rw has to be available by that time. (Arguably the stock rc.local in Qubes templates should be preinstalled with this line. But then, arguably, systemd should always automatically reload units any time it mounts something.) -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/qubes-users/d27f149b5018ef1a57c971707e224ef7%40disroot.org.
