LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-16-2001, 02:13 PM   #1
doodah
Member
 
Registered: Apr 2001
Location: Columbus,OH
Distribution: slackware
Posts: 122

Rep: Reputation: 15

what would the command be for restarting the networking services.. example, i edit etc/services, what would get those new settings going without a restart? thanks.
 
Old 05-16-2001, 08:31 PM   #2
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
In Redhat.. I think its "service --full-restart"
as root of course
 
Old 05-16-2001, 10:20 PM   #3
doodah
Member
 
Registered: Apr 2001
Location: Columbus,OH
Distribution: slackware
Posts: 122

Original Poster
Rep: Reputation: 15
no that wasnt quite it... here is the useage...

service <option> | --status-all | [ service_name [ command | --full-restart ] ]

im working on it but if anyone knows, that would be cool... ill listen! thanks.
 
Old 05-17-2001, 08:18 AM   #4
hazza96
Member
 
Registered: Apr 2001
Location: Brisbane, Australia
Distribution: Ubuntu
Posts: 146

Rep: Reputation: 15
I don't know but I would like to know because it would save me rebooting. I am sure it can be done just too lazy to work it out and it hasn't bothered me enough yet.

Besides that I am trained to reboot everytime I make a change, I've been using Windows for years now.
 
Old 05-17-2001, 12:01 PM   #5
doodah
Member
 
Registered: Apr 2001
Location: Columbus,OH
Distribution: slackware
Posts: 122

Original Poster
Rep: Reputation: 15
ok i kindve got it..

service httpd --full-restart

will restart httpd.. change httpd to network and it will reload lo, and eth0... but does anyone know what name the services in etc/services would fall under.. its not network..

getting closer...
 
Old 05-17-2001, 02:57 PM   #6
Jase
Member
 
Registered: May 2001
Location: Panama City Beach, FL
Distribution: *.BSD
Posts: 113

Rep: Reputation: 15
to restart the networking service the path is /etc/rc.d/init.d/network restart

or just go to your /etc/rc.d/init.d directory and type ./network restart


hope this helps

jase
 
Old 05-17-2001, 03:13 PM   #7
doodah
Member
 
Registered: Apr 2001
Location: Columbus,OH
Distribution: slackware
Posts: 122

Original Poster
Rep: Reputation: 15
hmmm.. would it be 'inetd' ?? im not at my box now but if some one wants to try it it may be...

service inetd --full-restart
 
Old 05-17-2001, 05:03 PM   #8
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
You have to restart the individual services I believe.

The services file is just a file for port usage.

Look in rc5.d or rc3.d to see what services you have for those run levels. Each on of those is just symlink to services in init.d
You can use 'ntsysv' to manage some of that.

You could easily script that with a bunch of:

service SERVICENAME -restart

commands in a script file.

 
Old 05-17-2001, 06:53 PM   #9
doodah
Member
 
Registered: Apr 2001
Location: Columbus,OH
Distribution: slackware
Posts: 122

Original Poster
Rep: Reputation: 15
beautiful! that was the info i was looking for. i guess i should have looked around a little more! thanks...
 
Old 05-18-2001, 07:24 AM   #10
hazza96
Member
 
Registered: Apr 2001
Location: Brisbane, Australia
Distribution: Ubuntu
Posts: 146

Rep: Reputation: 15
So how do you restart inetd and/or xinetd? I run Mandrake 7.2 and it uses xinetd.

Do you have to do inetd and then xinetd or just xinetd or just inetd?

What is the command? I seem to remember something about kill -1 ..... (or something like it) but the cobwebs are just covering that memory too much.
 
Old 05-18-2001, 08:13 AM   #11
KevinJ
Member
 
Registered: Feb 2001
Location: Colorado Springs, CO
Distribution: Redhat v8.0 (soon to be Fedora? or maybe I will just go back to Slackware)
Posts: 857

Rep: Reputation: 30
Try this:

/etc/init.d/xinetd restart

or this

service xinetd restart


both as 'root' of course.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Fluxbox simple question, simple answer? generallimptoes Linux - Software 3 09-26-2005 02:03 PM
Installing Programs - A simple question from my simple mind jmp875 Linux - Newbie 6 02-18-2004 09:03 PM
Hopefully a Simple Question Arcane Kidd Linux - Newbie 5 01-17-2003 04:27 PM
Really Simple Question -- Please help! Cia420 Linux - General 3 05-07-2002 06:42 AM
simple question seeking simple answer enzo250gto Linux - Newbie 1 10-27-2001 04:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration