Grey means was seen but currently not running. Seeing the errors in startAllCams I think it comes from this.
Running it with sh might be the problem you see here. sh must be bash, e.g. line 5 wth the error has
DIR="$(dirname "${BASH_SOURCE[0]}")"
which works only in bash.