[systemd-devel] Automatic Service Assesment?

Stefan Seering sseering at gmx.de
Wed Mar 10 21:20:12 UTC 2021


Hello,

I am searching for a way to update individual services (that are running
as systemd units) in a robust way.

I want to stop my service, replace the executables and start a new
service without a full reboot. I'm looking for something like
https://systemd.io/AUTOMATIC_BOOT_ASSESSMENT/ on a systemd unit level
that will roll back to older versions of a service if the new version
doesn't work.

As far as I can tell this is currently not a feature of systemd? Did I
overlook something? Maybe there is a solution that someone has built on
top of systemd already that does this?

My current concept is putting my service binary into
/usr/bin/$servicename/$version/service_executable and then vary the
$version part of ExecStart= using template units. I still would have to
implement my own management that checks if a new version works and
enables/disables service versions accordingly.

Does a similar solution exist already?

Regards
Stefan Seering.


More information about the systemd-devel mailing list