1 |
Another thought - http://www.gentoo.org/doc/en/rc-scripts.xml refers to |
2 |
"online" and "offline" runlevels as suggestion for offline machines. Can we |
3 |
make this part of the standard? I imagine a lot of users (and developers too) |
4 |
do run offline machines and it makes sence to have some guidance to this. A |
5 |
machine attempting to make connections to the internet when there isn't one |
6 |
is frustrating. Rather that everyone developing their own solutions I see |
7 |
standardisation as a mechanism around this. I noticed Redhat/Mandrake (please |
8 |
don't flame me for mentioning them here) have the directories |
9 |
/etc/sysconfig/network-scripts/ifup.d /etc/sysconfig/network-scripts/ifdown.d |
10 |
for such a purpose. I have faith that Gentoo can also meet this requirement |
11 |
in its own way. |
12 |
|
13 |
Scripts that depend on online/offline status can have requirements to start up |
14 |
at a "default" runlevel and wwwoffled, pdnsd, sendmail are example of this. |
15 |
To make these scripts and others work properly in an offline/online manner |
16 |
they need to be told about the connection status. As these scripts are often |
17 |
in the /etc/init.d directory (having started at the default runlevel) may I |
18 |
humble propose an "online|offline" arguement to these scripts? This would |
19 |
consolidate the functionality of the script in one place rather that having |
20 |
duplicates (e.g. wwwoffled and wwoffled-offle). Additional functionality such |
21 |
as IP changes could also be incorportated here too. I propose these be |
22 |
started with something like "rc-online|rc-offline" in the same way that |
23 |
/sbin/rc would start other scripts (exept with a different arguement). |
24 |
|
25 |
I'm willing to submit changes to all the packages that I work with (and others |
26 |
for the fun of it) that depend on offline/status indicators but what I realy |
27 |
require is some guidnce on how online/offline wants to be handled by the |
28 |
Gentoo community in general. |
29 |
|
30 |
Daniel Black |
31 |
-- |
32 |
Proudly a Gentoo User. |
33 |
GnuPG/PGP signed and encrypted email preferred |
34 |
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x32A64DC8 |
35 |
Key fingerprint = 2300 3292 3351 9665 D41B DC20 4C34 9BB6 32A6 4DC8 |