21.05.2016 05:59, Reindl Harald пишет:
> 
> 
> Am 20.05.2016 um 21:50 schrieb Christian Boltz:
>> Hello,
>>
>> it looks like
>>     systemctl restart foo
>> is internally mapped to a sequence of
>>     systemctl stop foo; systemctl start foo
> 
> what else?
> 
>> Unfortunately, this behaviour causes quite some trouble for me.
> 
> why?
> 

If you bothered to read URL OP mentioned, you would see one possible reason.

>> 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".
_______________________________________________
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to