W dniu 29 marca 2011 21:30 użytkownik Lennart Poettering
<[email protected]> napisał:
> On Tue, 29.03.11 21:27, Michał Piotrowski ([email protected]) 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/
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel

Reply via email to