You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by pd...@apache.org on 2015/03/08 15:32:53 UTC
[3/7] cloudstack-docs-admin git commit: Update templates.rst
Update templates.rst
There is no /etc/init.d/hostname.sh in ubuntu 14.04.1.
You could instead do 'service hostname start', or just do 'hostname -b -F /etc/hostname' which is what that upscript actually does.
Signed-off-by: Pierre-Luc Dion <pd...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-admin/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-admin/commit/708cb991
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-admin/tree/708cb991
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack-docs-admin/diff/708cb991
Branch: refs/heads/master
Commit: 708cb991c511e578fbd9344c6f2d6755af33e81c
Parents: ee2156c
Author: Martijn Koster <ma...@greenhills.co.uk>
Authored: Wed Feb 18 23:14:13 2015 +0000
Committer: Pierre-Luc Dion <pd...@apache.org>
Committed: Sun Mar 8 10:16:47 2015 -0400
----------------------------------------------------------------------
source/templates.rst | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cloudstack-docs-admin/blob/708cb991/source/templates.rst
----------------------------------------------------------------------
diff --git a/source/templates.rst b/source/templates.rst
index b473043..69480ad 100644
--- a/source/templates.rst
+++ b/source/templates.rst
@@ -421,8 +421,7 @@ templating.
mv /etc/hosts.dhcp.tmp /etc/hosts
# Rename Host
echo $hostname > /etc/hostname
- hostname $hostname
- /etc/init.d/hostname.sh start
+ hostname -b -F /etc/hostname
echo $hostname > /proc/sys/kernel/hostname
# Recreate SSH2
export DEBIAN_FRONTEND=noninteractive