Ubuntu 10.04 - /etc/init.d/hostname restart - Issue
I'm pretty new to the site. I was following the "The Perfect Server - Ubuntu 10.04 [ISPConfig 3]" howto and I've become stuck at Step 7 - Configure The Network.
When I run /etc/init.d/hostname restart, I get the following message:
Rather than invoking init scripts through /etc/init.d/, use the service utility, e.g. service hostname restart
Since the script you are attempting to invoke has been converted to an Upstart job, you may also use the restart utility, e.g. restart hostname
But when I run either service hostname restart or restart hostname I get the response:
restart: Unknown instance:
Any idea what’s gone wrong?
My full hostname is in the following format vm-svr-mail.mydomain.co.uk, but I've also tried mail.mydomain.co.uk as I thought the issue might be with multiple hyphens, but I still get the same result.
I too am having this issue. Running '/etc/init.d/hostname restart' simply produces the annoying warning quoted above, doesn't restart the service. Even after a full reboot, running:
Solved > I forgot to include the shortname portion in the /etc/hosts eg.
192.168.100.100 webserver.classroom100.com webserver
|All times are GMT +2. The time now is 19:59.|
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.