On 08/22/2016 06:09 PM, William Hubbs wrote:
> 
> Someone here at the office was wanting a cross-platform way to find out
> the hostname of the host the container is running on inside the
> container. We made another suggestion for that, so forget about the
> docker angle on this for now.
> 
> But, /etc/hostname is a multi-distro standard for where the hostname is
> located, so I would like to make openrc prefer it over the setting in
> /etc/conf.d/hostname if it exists.A
> 

What for? As far as I know, /etc/hostname is an arbitrary path that has
been used to configure the hostname in the past. Whatever, you gotta
configure it somewhere. But in OpenRC, there's a standard place for init
script configuration and we already use it. Switching just one service
to prefer another path is going to confuse everyone: "I changed my
hostname in /etc/conf.d/hostname and NOTHING HAPPENED!?!?"

Populating /etc/hostname will only encourage people to read it from
there rather than the proper way.


Reply via email to