On Saturday 05 August 2006 07:50, Duncan wrote: > If it's the exact same line both places, one works, the other doesn't, > it's almost certainly due to the difference in environment. The > environment passed to the one started from initscript will be rather more > limited than a fully interactive bash prompt environment. > > I'd suggest you put a debug statement in the initscript, right before the > command executes, that prints the environment to one file and the exported > environment to another. Diff those against the same output from the > command line that works right, and you'll have a good start on tracking > down the culprit, since you'll have all the differences nicely listed, in > ordered to check. Additionally many init scripts use start-stop-daemon with the --quiet command line option. This suppresses all output from the command used. In this case we would like to see this output so remove "--quiet" from the init script. Paul -- Paul de Vrieze Gentoo Developer Mail: pauldv@gentoo.org Homepage: http://www.devrieze.net