[CentOS] Startup script issues

Tue Dec 1 17:03:21 UTC 2009
Robert Bielik <robert.bielik at xponaut.se>

Brian Mathis skrev:
> It's helpful to understand that any child process started by a parent
> process always inherits the environment of the parent.  The cwd
> (current working directory) is part of that environment.  Any other
> environment variables that are exported, such as PATH, etc.. are also
> part of that environment.
> 
> So yes, the daemon process will start in the same directory that the
> script is currently in, and assuming the daemon does not 'cd' by
> itself, it should continue to run with that directory as the cwd.

Hmm.. yeah, my bad :) Of course the child process should inherit...

Thnx!
/R