1 |
Good evening all, |
2 |
|
3 |
I figured it was about time to start the Guarddog firewall script |
4 |
automatically, instead of always typing /etc/rc.firewall. The obvious |
5 |
thing to do was add it to /etc/conf.d/local.start. Easy enough. But it |
6 |
didn't start. OK, let's put a few logger commands in there and see where |
7 |
it fails. Nothing logged. Nada. Zilch. Tried the same thing in the |
8 |
/etc/init.d/local script. Once again, nothing logged. Here's the |
9 |
beginning of the local script |
10 |
|
11 |
depend() { |
12 |
after * |
13 |
} |
14 |
|
15 |
start() { |
16 |
ebegin "Starting local" |
17 |
|
18 |
# Add any misc programs that should be started |
19 |
# to /etc/conf.d/local.start |
20 |
logger -p auth.info "This is right before local.start is sourced" |
21 |
if [[ -e /etc/conf.d/local.start ]] ; then |
22 |
source /etc/conf.d/local.start |
23 |
fi |
24 |
eend $? "Failed to start local" |
25 |
} |
26 |
|
27 |
The initial "Starting local" is displayed as the system boots, but |
28 |
that's all that happens. If I do a /etc/init.d/local restart, all is |
29 |
well, and all is logged. |
30 |
|
31 |
Am I once again missing the obvious? |
32 |
|
33 |
Thanks, |
34 |
John |
35 |
-- |
36 |
Contrary to the lie machine, the world is not safer. |