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...
CentOS mailing list