start-stop-daemon: how to set directory?
On 2010-05-07, Albert Hopkins <firstname.lastname@example.org> wrote:
> On Thu, 2010-05-06 at 20:27 +0000, Grant Edwards wrote:
>> I'm writing an init script for a daemon that needs to be started in a
>> particular directory, and I can't figure out how to do that with
>> It always seems to start the daemon in '/' regardless of the current
>> working directory when start-stop-daemon is invoked.
> start-stop-daemon has a man page that explains it's options,
Yes, I know.
> -d, --chdir path
> chdir to this directory before starting the daemon.
That must be a recent addition, because it's not on my man page from
baselayout 1.12.13 (the most recent stable version).
I don't think I'll switch to an unstable baselayout just yet.