[systemd-devel] restart vs. stop/start

Lennart Poettering lennart at poettering.net
Mon May 23 09:25:08 UTC 2016


On Sat, 21.05.16 10:31, Andrei Borzenkov (arvidjaar at gmail.com) wrote:

> >> I need a way to know if "restart "or "stop" was used because the mapping
> >> to stop / start gives my service a completely different behaviour than
> >> expected on restart.
> >>
> >> Is there a way to find out if "stop" or "restart" was used?
> > 
> > if you need to differ here your service is broken by design - why do you
> > need to kow what triggered stop and what else do you imagine for
> > "restart" then stop-start?
> > 
> 
> I am curious how you implement "systemctl daemon-restart" using only
> plain "stop systemd" followed by "start systemd".

Hmm? What is "systemctl daemon-restart" supposed to be?

Lennart

-- 
Lennart Poettering, Red Hat


More information about the systemd-devel mailing list