Domanda

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

È stato utile?

Soluzione

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.

Altri suggerimenti

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top