[systemd-devel] [ANNOUNCE] systemd v229
Lennart Poettering
lennart at poettering.net
Fri Feb 12 20:56:25 UTC 2016
On Thu, 11.02.16 19:20, Jan Alexander Steffens (jan.steffens at gmail.com) wrote:
> > when i say "start and stop after 20 minutes" i mean stop it not fail
> >
> > usecase?
>
> I wanted to say "aborting Type=oneshot services," but that's what
> TimeoutStartSec is for. So I was wondering what the point of this is, too.
>
> Apparently it's for instantiated services like systemd-coredump at .service.
> Why can't a service for an Accept=yes socket be Type=oneshot and use
> TimeoutStartSec?
Philosophically I'd claim that Type=oneshot is supposed to be for
"short" running processes that something else waits for *to
exit*. The other types are for "long" running processes, that
nothing waits for to exit. Thus I think the coredump service is right
for Type=simple.
But yeah, the lines are blurry, and it would work with Type=oneshot too.
Lennart
--
Lennart Poettering, Red Hat
More information about the systemd-devel
mailing list