Re: [systemd-devel] Extend service runtime

2020-05-05 Thread Mantas Mikulėnas
On Tue, May 5, 2020 at 1:19 AM Andy Pieters wrote: > > > On Mon, 4 May 2020 at 23:11, Mantas Mikulėnas wrote: > >> >> >> So this is basically for implementing sudo-like caching for 2FA? >> >> > Yes that's exactly it. > > >> What authentication methods are involved here? >> > > Using yubikey + pa

Re: [systemd-devel] Extend service runtime

2020-05-05 Thread Andy Pieters
On Tue, 5 May 2020 at 07:56, Lennart Poettering wrote: > A service for which sd_notify() is enabled can send > an EXTEND_TIMEOUT_USEC= message to the service manager, in order to > extend its timeouts. Wouldn't that work for you? > > That sounds perfect, thank you :) _

Re: [systemd-devel] Extend service runtime

2020-05-04 Thread Lennart Poettering
On Mo, 04.05.20 15:51, Andy Pieters ([email protected]) wrote: > Hi > > I'm trying to accomplish the following: > > An event happens -> I start a systemd service in response > after RuntimeMaxSec is reached service terminates and cleans up event > > Should a second event happen whilst Ru

Re: [systemd-devel] Extend service runtime

2020-05-04 Thread Andy Pieters
On Mon, 4 May 2020 at 23:11, Mantas Mikulėnas wrote: > > > So this is basically for implementing sudo-like caching for 2FA? > > Yes that's exactly it. > What authentication methods are involved here? > Using yubikey + password when 2F is active, using hostkey when not > Seems like there are

Re: [systemd-devel] Extend service runtime

2020-05-04 Thread Mantas Mikulėnas
On Mon, May 4, 2020, 23:31 Andy Pieters wrote: > On Mon, 4 May 2020 at 15:51, Andy Pieters > wrote: > >> Hi >> >> I'm trying to accomplish the following: >> >> An event happens -> I start a systemd service in response >> after RuntimeMaxSec is reached service terminates and cleans up event >>

Re: [systemd-devel] Extend service runtime

2020-05-04 Thread Andy Pieters
On Mon, 4 May 2020 at 15:51, Andy Pieters wrote: > Hi > > I'm trying to accomplish the following: > > An event happens -> I start a systemd service in response > after RuntimeMaxSec is reached service terminates and cleans up event > > Should a second event happen whilst RuntimeMaxSec is not ye

[systemd-devel] Extend service runtime

2020-05-04 Thread Andy Pieters
Hi I'm trying to accomplish the following: An event happens -> I start a systemd service in response after RuntimeMaxSec is reached service terminates and cleans up event Should a second event happen whilst RuntimeMaxSec is not yet reached the preference would be to reset RuntimeMaxSec of the