public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] start-stop-daemon: how to set directory?
@ 2010-05-06 20:27 Grant Edwards
  2010-05-07  0:03 ` Albert Hopkins
  0 siblings, 1 reply; 3+ messages in thread
From: Grant Edwards @ 2010-05-06 20:27 UTC (permalink / raw
  To: gentoo-user

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
start-stop-daemon.

It always seems to start the daemon in '/' regardless of the current
working directory when start-stop-daemon is invoked.

-- 
Grant Edwards               grant.b.edwards        Yow! Could I have a drug
                                  at               overdose?
                              gmail.com            




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [gentoo-user] start-stop-daemon: how to set directory?
  2010-05-06 20:27 [gentoo-user] start-stop-daemon: how to set directory? Grant Edwards
@ 2010-05-07  0:03 ` Albert Hopkins
  2010-05-07  1:49   ` [gentoo-user] " Grant Edwards
  0 siblings, 1 reply; 3+ messages in thread
From: Albert Hopkins @ 2010-05-07  0:03 UTC (permalink / raw
  To: gentoo-user

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
> start-stop-daemon.
> 
> 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, including:

     -d, --chdir path
             chdir to this directory before starting the daemon.







^ permalink raw reply	[flat|nested] 3+ messages in thread

* [gentoo-user] Re: start-stop-daemon: how to set directory?
  2010-05-07  0:03 ` Albert Hopkins
@ 2010-05-07  1:49   ` Grant Edwards
  0 siblings, 0 replies; 3+ messages in thread
From: Grant Edwards @ 2010-05-07  1:49 UTC (permalink / raw
  To: gentoo-user

On 2010-05-07, Albert Hopkins <marduk@letterboxes.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
>> start-stop-daemon.
>> 
>> 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.

> including:
>
>      -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.

Thanks anyway.

-- 
Grant






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-05-07  1:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-06 20:27 [gentoo-user] start-stop-daemon: how to set directory? Grant Edwards
2010-05-07  0:03 ` Albert Hopkins
2010-05-07  1:49   ` [gentoo-user] " Grant Edwards

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox