[systemd-devel] Unload disabled units

Reindl Harald h.reindl at thelounge.net
Sun Sep 15 13:07:04 UTC 2019



Am 15.09.19 um 05:12 schrieb Daniel Duong:
> 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 belleshop at 0.2.socket
> 	# Test that everything is fine
> 	systemctl enable belleshop at 0.2.socket
> 	systemctl stop belleshop at 0.1.socket
> 	systemctl stop belleshop at 0.1.service
> 	systemctl disable belleshop at 0.1.socket
> 
> 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
what about "systemctl daemon-reload"?
it's not mentioned anywhere in your post


More information about the systemd-devel mailing list