Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 16th July 2010, 18:33
GaryL GaryL is offline
Junior Member
 
Join Date: Jul 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Ubuntu 10.04 - /etc/init.d/hostname restart - Issue

Hi all,

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
hostname stop/waiting



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.


Many Thanks

Last edited by GaryL; 16th July 2010 at 18:37.
Reply With Quote
Sponsored Links
  #2  
Old 17th July 2010, 14:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Quote:
Originally Posted by GaryL View Post
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
hostname stop/waiting



But when I run either service hostname restart or restart hostname I get the response:
restart: Unknown instance:

Any idea whats gone wrong?
You can ignore this warning - just run
Code:
/etc/init.d/hostname restart
and you should be fine.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 25th July 2010, 00:35
unsichtbare unsichtbare is offline
Senior Member
 
Join Date: Sep 2007
Posts: 111
Thanks: 18
Thanked 7 Times in 6 Posts
Default

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:

Code:
root@webserver:~# hostname
webserver.classroom100.com
root@webserver:~# hostname -f
hostname: Name or service not known
root@webserver:~#
-J
__________________
Ubuntu 14.04 - The Perfect Setup
ISPConfig 3.0.5
http://www.vmsources.com
Reply With Quote
  #4  
Old 25th July 2010, 01:31
unsichtbare unsichtbare is offline
Senior Member
 
Join Date: Sep 2007
Posts: 111
Thanks: 18
Thanked 7 Times in 6 Posts
 
Default

Solved > I forgot to include the shortname portion in the /etc/hosts eg.

192.168.100.100 webserver.classroom100.com webserver
__________________
Ubuntu 14.04 - The Perfect Setup
ISPConfig 3.0.5
http://www.vmsources.com
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem send/receive Courier+Postfix+Squirrelmail Pirk Installation/Configuration 2 21st May 2010 13:26
Connection timed out on intermail outgoing mails gouravgarg Server Operation 6 5th March 2010 20:31
Unbale to login to Postfix from webmail wasimriz HOWTO-Related Questions 5 6th April 2009 13:49
Problem on restart bind9 satimis Server Operation 6 30th October 2007 02:01
Log for Debugging jwan Installation/Configuration 5 27th October 2006 14:34


All times are GMT +2. The time now is 20:21.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.