Re: [systemd-devel] OnFailure=

2018-03-08 Thread Jakob Schürz
Am 2018-03-08 um 07:03 schrieb Andrei Borzenkov: > 08.03.2018 02:37, Jakob Schürz пишет: [...] > > This is apparently wrong, because service briefly goes via "failed" > state every time it fails. It is true that if Restart= is set it > immediately follows by "activating" state again, but

Re: [systemd-devel] OnFailure=

2018-03-07 Thread Andrei Borzenkov
08.03.2018 02:37, Jakob Schürz пишет: > Hi there! > > I build a test-unit > > # cat test@.service > [Unit] > Description=Testservice notification > OnFailure=notification-telegram@%n.service > > [Service] > Type=simple > Restart=on-failure > #RestartSec=2 > ExecStart=/bin/%i >