On Mon, May 23, 2016 at 12:25 PM, Lennart Poettering <lenn...@poettering.net> wrote: > On Sat, 21.05.16 10:31, Andrei Borzenkov (arvidj...@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? >
It is supposed to be "daemon-reexec". I always confuse it. _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/systemd-devel