Gentoo Archives: gentoo-dev

From: John Nilsson <john@×××××××.nu>
To: Nahor <nahor@××××××××××.com>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] changing directory with start-stop-daemon
Date: Thu, 25 Mar 2004 08:28:49
Message-Id: 1080203347.952.159.camel@newkid.milsson.nu
In Reply to: [gentoo-dev] changing directory with start-stop-daemon by Nahor
1 Ugly hack: link the file to root before the service is started, and
2 remove the link when done...
3
4 -John
5
6
7
8 On Wed, 2004-03-24 at 23:48, Nahor wrote:
9 > Hi,
10 >
11 > I have a program that read it's configuration file in the current
12 > directory and I want this program to be started as a service (IBM's
13 > RaidAgnt for those who want know).
14 >
15 > How can I change the current directory?
16 >
17 > I tried putting a "cd <dir>" in the service script but that didn't
18 > change anything. The program always runs in the filesystem root. And
19 > since I don't have the source code, I can change its behavior.
20 >
21 > Thanks,
22 > Nahor
23 >
24 >
25 > --
26 > gentoo-dev@g.o mailing list
27 >

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-dev] changing directory with start-stop-daemon Paul de Vrieze <pauldv@g.o>