Re: [systemd-devel] Restart=on-failure and SuccessAction=reboot-force causing reboots on every exit of Main PID

2022-02-17 Thread Michał Rudowicz
Hi, The minimal file with which I was able to reproduce the issue is: [Unit] Description="Example" SuccessAction=reboot-force [Service] Type=simple ExecStart=/bin/false Restart=on-failure I can reproduce it both on my buildroot system with systemd 247 and fresh

Re: [systemd-devel] Restart=on-failure and SuccessAction=reboot-force causing reboots on every exit of Main PID

2022-02-16 Thread Lennart Poettering
On Mi, 16.02.22 11:45, Michał Rudowicz (michal.rudow...@fl9.eu) wrote: > Hi, > > I am trying to write a .service file for an application which is supposed to > run indefinitely. The approach I have is: > > - if the application crashes (exits with a non-zero exit code), I want >it to be

[systemd-devel] Restart=on-failure and SuccessAction=reboot-force causing reboots on every exit of Main PID

2022-02-16 Thread Michał Rudowicz
Hi, I am trying to write a .service file for an application which is supposed to run indefinitely. The approach I have is: - if the application crashes (exits with a non-zero exit code), I want it to be restarted. This can be achieved easily using the Restart directive, like