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 |
> |