質問

Will rc.local wait for each command to finish, or the commands are executed like exec() ?

役に立ちましたか?

解決

It's a normal shell script. So they block or not, according to how the script invokes the commands (e.g. with/without &).

But exec also works differently to how you appear to think; exec() doesn't do anything asynchronously.

他のヒント

They block. They can be run asynchronously by putting '&' at the end.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top