Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 50434 - baselayout-1.9.0 seems to break things
Summary: baselayout-1.9.0 seems to break things
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-05-08 01:58 UTC by Patrick Fourniols
Modified: 2004-05-10 08:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
start-stop-daemon.c.patch (start-stop-daemon.c.patch,815 bytes, patch)
2004-05-08 04:08 UTC, Sven Wegener
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Fourniols 2004-05-08 01:58:59 UTC
emerrging baselayout-1.9.0 breaks openvpn init script:

/etc/init.d/openvpn start
 * Starting openvpn for aline...
Sat May  8 10:51:01 2004 0: In [CMD-LINE]:1: Error opening configuration file: aline/local.conf: No such file or directory (errno=2)
Sat May  8 10:51:01 2004 1: Exiting                                       [ !! ] 
 * Starting openvpn for mai...
Sat May  8 10:51:01 2004 0: In [CMD-LINE]:1: Error opening configuration file: mai/local.conf: No such file or directory (errno=2)
Sat May  8 10:51:01 2004 1: Exiting                                       [ !! ]

but:
openvpn --config /etc/openvpn/aline/local.conf --writepid /var/run/openvpn-aline.pid --daemon --cd /etc/openvpn/aline
works very fine
seems runscript has a bug ;)

Reproducible: Always
Steps to Reproduce:
1./etc/init.d/openvpn start
2.
3.

Actual Results:  
must start openvpn manually

Expected Results:  
working ;)
Comment 1 Sven Wegener gentoo-dev 2004-05-08 04:08:32 UTC
Created attachment 30989 [details, diff]
start-stop-daemon.c.patch

update to start-stop-daemon 1.10.20 by agriffis made 4 days ago is
leading to this. when start-stop-daemon is not started with option
--chdir it will be default chdir to / before starting the daemon.
as openvpn is started with relative values for --config and --cd
this will fail.

solutions:
1. use the new --chdir option from start-stop-dameon to change into
   /etc/openvpn. requires sys-apps/baselayout-1.9.0 and therefore no
   real solution from my side
2. move the --cd option from openvpn to the front and let openvpn change into
   the right directory
3. use absolute values for --config and --cd
4. patch start-stop-daemon to not chdir to / by default

my favourite is number 4 because when no --chdir options is specified,
start-stop-daemon should not chdir anywhere. this is expected behaviour
from my side. if someone wants to chdir to / he can easily add --chdir /
to the command line options.

see attached patch for start-stop-daemon.c to implement this.

sven
Comment 2 Patrick Fourniols 2004-05-08 06:21:58 UTC
patch work great thanks
Comment 3 Aron Griffis (RETIRED) gentoo-dev 2004-05-10 07:55:55 UTC
Committed to rc-scripts cvs, this will be in baselayout-1.9.1
Comment 4 Aron Griffis (RETIRED) gentoo-dev 2004-05-10 08:17:28 UTC
baselayout-1.9.1 is in portage and baselayout-1.9.0 is removed.  Thanks again!