문제

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