1 |
On Feb 16, 2012 2:01 PM, "Willie Matthews" <matthews.willie@×××××.com> |
2 |
wrote: |
3 |
> |
4 |
> On Thu, 16 Feb 2012 12:24:45 +0700 |
5 |
> Pandu Poluan <pandu@××××××.info> wrote: |
6 |
> |
7 |
> > I am wondering if any of you had experienced the same difficulty as |
8 |
> > me: |
9 |
> > |
10 |
> > A couple of days ago, I upgraded openrc from (whatever version it was |
11 |
> > previously) to 0.9.8.4. |
12 |
> > |
13 |
> > One of the scripts in /etc/init.d was a symlink |
14 |
> > to /opt/some/package/path |
15 |
> > |
16 |
> > (To be precise, /etc/init.d/gatewall -> |
17 |
> > /opt/wallmator/initscripts/gentoo/gatewall.init) |
18 |
> > |
19 |
> > ((wallmator is a "Firewall Automator" script I'm developing)) |
20 |
> > |
21 |
> > This morning, I rebooted. Upon time to execute the "gatewall" script, |
22 |
> > it complained that some settings (set through /etc/conf.d/gatewall are |
23 |
> > not set). I double-checked the settings it complained; yep, they are |
24 |
> > there in /etc/conf.d/gatewall. |
25 |
> > |
26 |
> > I tried `/etc/init.d/gatewall start`, no luck. It still complains of |
27 |
> > some vital non-optional settings not being set. |
28 |
> > |
29 |
> > So, I replaced the symlink: |
30 |
> > |
31 |
> > cd /etc/init.d |
32 |
> > mv gatewall gatewall.old |
33 |
> > cp /opt/wallmator/initscripts/gentoo/gatewall.init gatewall |
34 |
> > |
35 |
> > And tried again `/etc/init.d/gatewall start` ... it worked!! |
36 |
> > |
37 |
> > So I tried `shutdown -r now` ... there's joy in Mudville! The |
38 |
> > "gatewall" initscript now properly reads the settings in |
39 |
> > /etc/conf.d/gatewall. |
40 |
> > |
41 |
> > My question is: Is there a change of behavior in how openrc executes a |
42 |
> > script in /etc/init.d/ when said script is a symlink instead of a |
43 |
> > 'normal' file? |
44 |
> > |
45 |
> > PS: For this particular system, everything under / except /boot |
46 |
> > resides in the same filesystem. |
47 |
> > |
48 |
> > PPS: For the contents of the "gatewall" initscript, see |
49 |
> > |
50 |
https://bitbucket.org/pepoluan/wallmator/src/edae2e294d07/initscript/gentoo/gatewall.init |
51 |
> > |
52 |
> > Rgds, |
53 |
> |
54 |
> I didn't have that problem and upgraded yesterday! |
55 |
> |
56 |
|
57 |
Hmmm... strange... I can still work around the problem, though. Just |
58 |
manually source the relevant file in /etc/conf.d. |
59 |
|
60 |
Thanks for the info. |
61 |
|
62 |
Rgds, |