On Sun, 15 Sep 2019, Daniel Duong wrote: > Hi, > > I have a 2 template units: 1 for a service and 1 for a socket. Each > instance is a version of my web application. > > After a successful deploy, I stop and disable the old version and I > enable the new one: > systemctl start [email protected] > # Test that everything is fine > systemctl enable [email protected] > systemctl stop [email protected] > systemctl stop [email protected] > systemctl disable [email protected] > > I've done that for a few versions now, and it seemed to work OK. There > is a little problem though. The old versions are still loaded: > > $ systemctl --no-legend --all list-units belleshop@* > [email protected] loaded active running Belleshop server > [email protected] loaded inactive dead Belleshop server > [email protected] loaded inactive dead Belleshop server > [email protected] loaded inactive dead Belleshop server > [...] > [email protected] loaded active running Belleshop socket > [email protected] loaded inactive dead Belleshop socket > [email protected] loaded inactive dead Belleshop socket > [email protected] loaded inactive dead Belleshop socket > [...] > > Is there any way I can unload these old versions?
You should check to see if anything is actually still referencing these units. Try `systemd-analyze dump` and see if any "ReferencedBy" entries appear for these units. _______________________________________________ systemd-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/systemd-devel
