[systemd-devel] restart vs. stop/start

Andrei Borzenkov arvidjaar at gmail.com
Mon May 23 10:11:40 UTC 2016


On Mon, May 23, 2016 at 12:25 PM, Lennart Poettering
<lennart at poettering.net> wrote:
> 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?
>

It is supposed to be "daemon-reexec". I always confuse it.


More information about the systemd-devel mailing list