1 |
161002 Philip Webb wrote: |
2 |
> 161002 Hinnerk van Bruinehsen wrote: |
3 |
>> On Sun, Oct 02, 2016 at 07:41:48AM -0400, Philip Webb wrote: |
4 |
>>> I did a big system update yesterday ( 52 pkgs ), incl Net-tools Dhcpcd , |
5 |
>>> & on restarting today found that hostname is not being set : |
6 |
>> Check if sys-apps/net-tools has the "hostname" useflag enabled |
7 |
>> it's enabled by default so you may encounter the fallout of a -* setup. |
8 |
> Yes, that was it (red face). Thanks for the prompt reply. |
9 |
|
10 |
Wanting to make a note for the future in case this happens again, |
11 |
I have written : |
12 |
|
13 |
Hostname set by /etc/init.d/hostname : |
14 |
the binary /bin/hostname is provided by Net-tools + USE="hostname" ; |
15 |
hostname needs to be set to localhost to make apps work properly : |
16 |
this is done via /etc/hosts , |
17 |
wh belongs to Baselayout & shd contain '127.0.0.1 localhost' ; |
18 |
there is also /etc/conf.d/hostname , |
19 |
wh belongs to Openrc & contains 'hostname="localhost"'. |
20 |
|
21 |
However, I'm now wondering whether/why the system needs both |
22 |
/etc/hosts + /etc/conf.d/hostname , which seem to do the same thing. |
23 |
Can anyone explain ? |
24 |
|
25 |
-- |
26 |
========================,,============================================ |
27 |
SUPPORT ___________//___, Philip Webb |
28 |
ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto |
29 |
TRANSIT `-O----------O---' purslowatchassdotutorontodotca |