1 |
I am wondering if any of you had experienced the same difficulty as me: |
2 |
|
3 |
A couple of days ago, I upgraded openrc from (whatever version it was |
4 |
previously) to 0.9.8.4. |
5 |
|
6 |
One of the scripts in /etc/init.d was a symlink to /opt/some/package/path |
7 |
|
8 |
(To be precise, /etc/init.d/gatewall -> |
9 |
/opt/wallmator/initscripts/gentoo/gatewall.init) |
10 |
|
11 |
((wallmator is a "Firewall Automator" script I'm developing)) |
12 |
|
13 |
This morning, I rebooted. Upon time to execute the "gatewall" script, |
14 |
it complained that some settings (set through /etc/conf.d/gatewall are |
15 |
not set). I double-checked the settings it complained; yep, they are |
16 |
there in /etc/conf.d/gatewall. |
17 |
|
18 |
I tried `/etc/init.d/gatewall start`, no luck. It still complains of |
19 |
some vital non-optional settings not being set. |
20 |
|
21 |
So, I replaced the symlink: |
22 |
|
23 |
cd /etc/init.d |
24 |
mv gatewall gatewall.old |
25 |
cp /opt/wallmator/initscripts/gentoo/gatewall.init gatewall |
26 |
|
27 |
And tried again `/etc/init.d/gatewall start` ... it worked!! |
28 |
|
29 |
So I tried `shutdown -r now` ... there's joy in Mudville! The |
30 |
"gatewall" initscript now properly reads the settings in |
31 |
/etc/conf.d/gatewall. |
32 |
|
33 |
My question is: Is there a change of behavior in how openrc executes a |
34 |
script in /etc/init.d/ when said script is a symlink instead of a |
35 |
'normal' file? |
36 |
|
37 |
PS: For this particular system, everything under / except /boot |
38 |
resides in the same filesystem. |
39 |
|
40 |
PPS: For the contents of the "gatewall" initscript, see |
41 |
https://bitbucket.org/pepoluan/wallmator/src/edae2e294d07/initscript/gentoo/gatewall.init |
42 |
|
43 |
Rgds, |
44 |
-- |
45 |
FdS Pandu E Poluan |
46 |
~ IT Optimizer ~ |
47 |
|
48 |
• LOPSA Member #15248 |
49 |
• Blog : http://pepoluan.tumblr.com |
50 |
• Linked-In : http://id.linkedin.com/in/pepoluan |