#1043106 needrestart: Do not restart run services (started via systemd-run)

#1043106#5
Date:
2023-08-06 07:41:52 UTC
From:
To:
Dear Maintainer,

I am using a service created via systemd-run to run unattended-upgrade. Today, needrestart restarted this service as some libraries have been updated, which resulted in two runs, one failed and another one.

I suspect that commands started/run via systemd-run will most likely be oneshot commands, which shouldn't be restarted. Therefore, I added run services to override_rc and would like to see this in the default configuration for needrestart.

I attached a patch which will do this.

Cheers
Volker