ALT Linux sysadmins discussion
 help / color / mirror / Atom feed
* [Sysadmins] OpenVZ, гость CentOS7 и hostname (systemd ?)
@ 2017-11-29  5:49 Sergey
  0 siblings, 0 replies; only message in thread
From: Sergey @ 2017-11-29  5:49 UTC (permalink / raw)
  To: sysadmins

Приветствую.

А что это такое ? 

# rpm -qf redhat-set_hostname.sh
vzctl-4.9.4-alt1

        if [ -f /etc/hostname ]; then
                # New style: RHEL7/Fedora15+
                # Note hostname(5) says it should NOT be FQDN
                val=${val%%.*}
                echo "$val" > /etc/hostname
        else

Смотрю этот man 5 hostname (кстати, написано, что это systemd 219)
в CentOS, про NOT be FQDN не вижу что-то. Как там правильно hostname
назначать ? Пока закомментировал val=${val%%.*}, получил нужный
эффект. Но для чего-то же это было сделано ? 

-- 
С уважением, Сергей.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-11-29  5:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-29  5:49 [Sysadmins] OpenVZ, гость CentOS7 и hostname (systemd ?) Sergey

ALT Linux sysadmins discussion

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
		sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
	public-inbox-index sysadmins

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sysadmins


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git