• hostname manpage

    From Marco Moock@mm@dorfdsl.de to alt.os.linux.slackware on Thu Mar 13 20:14:14 2025
    From Newsgroup: alt.os.linux.slackware

    Hello!

    hostname(1) manpage says:

    The host name is usually set once at system
    startup in /etc/init.d/hostname.sh (normally by reading the
    contents of a file which contains the host name, e.g.
    /etc/hostname).

    Neither /etc/init.d/hostname.sh nor /etc/hostname exist in my 15.0
    system. /etc/HOSTNAME does and is being used by /etc/rc.d/rc.M.

    Is that caused by my installation or a faulty/outdated manpage?
    --
    kind regards
    Marco

    Send spam to 1741893127muell@stinkedores.dorfdsl.de

    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Rich@rich@example.invalid to alt.os.linux.slackware on Thu Mar 13 21:13:12 2025
    From Newsgroup: alt.os.linux.slackware

    Marco Moock <mm@dorfdsl.de> wrote:
    Hello!

    hostname(1) manpage says:

    The host name is usually set once at system
    startup in /etc/init.d/hostname.sh (normally by reading the
    contents of a file which contains the host name, e.g.
    /etc/hostname).

    Neither /etc/init.d/hostname.sh nor /etc/hostname exist in my 15.0
    system. /etc/HOSTNAME does and is being used by /etc/rc.d/rc.M.

    Is that caused by my installation or a faulty/outdated manpage?

    Slack 15 here, also /etc/HOSTNAME here as well, and capitalized in rc.M
    also. Looks to be a Slackware 15 quirk.
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Henrik Carlqvist@Henrik.Carlqvist@deadspam.com to alt.os.linux.slackware on Fri Mar 14 06:02:37 2025
    From Newsgroup: alt.os.linux.slackware

    On Thu, 13 Mar 2025 20:14:14 +0100, Marco Moock wrote:
    hostname(1) manpage says:

    The host name is usually set once at system
    startup in /etc/init.d/hostname.sh (normally by reading the
    contents of a file which contains the host name, e.g.
    /etc/hostname).

    Neither /etc/init.d/hostname.sh nor /etc/hostname exist in my 15.0
    system. /etc/HOSTNAME does and is being used by /etc/rc.d/rc.M.

    Is that caused by my installation or a faulty/outdated manpage?

    At the end of the manpage you can see that it was last updated year 2008
    and that it was written by some upstream providers, this manpage is not specifically written for Slackware or any other distribution. That is
    probably why they did choose a wording like "usually set once at system startup".

    As long as I can remember (I started with Slackware 3.0 1995) Slackware
    has had the file /etc/HOSTNAME and that file has been used when going multiuser in the startup script /etc/rc.d/rc.M (that call is made from
    rc.M in both stable 15.0 and older versions including 9.1 from 2003 and probably even older versions of Slackware than that.

    One of my main reasons to stick with Slackware is that I really like its system of startup scripts which kind of reminds me of the SunOS 4 BSD
    style startup scripts. Today, when many systems switch to systemd, I
    prefer the Slackware startup scripts even more. However, I do not expect upstream providers to specifically adapt their man pages for Slackwares
    rather unique startup system and I don't expect any Slackware maintainer
    to patch the man pages to better reflect exactly how the startup files of Slackware are written.

    regards Henrik
    --- Synchronet 3.21d-Linux NewsLink 1.2