[systemd-devel] Fwd: Stopping a service at a specific time or after a specific duration

Lennart Poettering lennart at poettering.net
Fri Apr 22 15:02:11 UTC 2016


On Wed, 20.04.16 16:29, Jamie Kitson (jamie at kitten-x.com) wrote:

> >   For stopping after a duration you can use RuntimeMaxSec=, introduced in
> >   v229. 
> 
> Thanks. The man page says:
> 
> > If this is used and the service has been active for longer than the specified
> > time it is terminated and put into a failure state.
> 
> Do you know what terminate signal is used, or if the failure state has
> any adverse/side effects?

SIGABRT. A service in the failure state will show up as that in
"systemctl list-services", and will not be GC'ed away, until the
failure state is reset with "systemctl reset-failed".

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list