[WHEREAMI] whereami newbie

Andrew McMillan andrew at catalyst.net.nz
Wed Sep 27 20:07:51 NZST 2006


On Wed, 2006-09-27 at 01:26 +0200, Dot Deb wrote:
> 	Just a basic question before submitting my "real" problem:
> 
> 	I'm tryng to figure out why there is a initscript for whereami
> 	(/etc/init.d/whereami) while it is also started during networking
> 	startup process (script in /etc/network/if-pre.up/whereami).
> 
> 	Which one should be expected to perform detection and
> 	configurations? and when with respect to the attempt to bring up
> 	interfaces by networking starup process?

Hi,

I think that /etc/network/if-pre-up.d/whereami will only run for the
interfaces configured in /etc/network/interfaces, and it won't run when
'lo' is configured.

For many people using whereami lo is the _only_ interface configured, so
whereami needs to run at some point during boot, hence the init script.

Certainly, whereami runs too often during boot, and I'm guilty of not
really seeing that problem since I rarely reboot...

$uprecords -B

   #             Uptime | System                      Boot up 
------------------------+------------------------------------------
-> 1   2 days, 21:50:37 | Linux 2.6.17.1   Sun Sep 24 22:10:00 2006
   2  10 days, 06:18:45 | Linux 2.6.17.1   Thu Sep 14 15:11:30 2006
   3   4 days, 04:18:24 | Linux 2.6.17.1   Sun Sep 10 09:53:06 2006
   4  11 days, 23:14:10 | Linux 2.6.17.1   Tue Aug 29 07:58:29 2006
   5   2 days, 11:59:06 | Linux 2.6.17.1   Sat Aug 26 11:51:00 2006
   6  13 days, 02:01:39 | Linux 2.6.17.1   Thu Jun 29 10:36:29 2006


Only three opportunities in September and two in August to notice those
sorts of annoyances, and this laptop is really flakey compared with my
last one.

Consequently that sort of thing is unlikely to change without a patch,
and I do rarely notice problems with the way whereami runs on boot.

I guess it could do something more intelligent in the init script and
just exit if it saw there was a non-lo interface which was going to
cause whereami to run with network initialisation.  That's probably the
right fix, so if you want to look into it and send me a patch :-)

Cheers,
					Andrew.

-------------------------------------------------------------------------
Andrew @ Catalyst .Net .NZ  Ltd,  PO Box 11-053, Manners St,  Wellington
WEB: http://catalyst.net.nz/            PHYS: Level 2, 150-154 Willis St
DDI: +64(4)803-2201      MOB: +64(272)DEBIAN      OFFICE: +64(4)499-2267
    I have not seen high-discipline processes succeed in commercial
                     settings. - Alistair Cockburn

-------------------------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.catalyst.net.nz/pipermail/whereami-discuss/attachments/20060927/2cd9fff0/attachment.pgp


More information about the whereami-discuss mailing list