[systemd-devel] problem with service that uses bash loop
Michał Piotrowski
mkkp4x4 at gmail.com
Tue Mar 29 12:46:14 PDT 2011
W dniu 29 marca 2011 21:30 użytkownik Lennart Poettering
<lennart at poettering.net> napisał:
> On Tue, 29.03.11 21:27, Michał Piotrowski (mkkp4x4 at gmail.com) wrote:
>
>>
>> I added
>> RemainAfterExit=yes
>> and now service behaves as expected.
>
> Ah of course! Otherwise the modprobe is executed right when the last
> process you ran before exited...
I do not understand why this is so.
example I
Type=oneshot
ExecStart=A
ExecStart=B
ExecStop=C
example II
Type=oneshot
RemainAfterExit=yes
ExecStart=A
ExecStart=B
ExecStop=C
what is the difference in the sequence of execution in these example scripts?
I think in both cases is:
start:
- A
- B
stop:
- C
>
> Lennart
>
> --
> Lennart Poettering - Red Hat, Inc.
>
--
Best regards,
Michal
http://eventhorizon.pl/
More information about the systemd-devel
mailing list