I was expecting that in rc.local
, If say I call program P1
in one line and then P2
in the following line, P2
would only be executed after P1
(on which it depends for successful execution). This is the behavior in bash scripts. However, after booting my machine, P2
was not completed. So my guess is that all commands written in rc.local
are run in parallel and P1
did not finish before the execution of P2
. I guess this behavior makes sense for daemons...
If it's in parallel, I could just solve this by using the &&
operator or creating a wrapper script. Still, I would like to confirm the behavior:
In rc.local
, commands in new lines are executed sequentially or in parallel?