LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 01-21-2005, 09:45 AM   #1
treedstang
Member
 
Registered: Jul 2003
Distribution: Suse 9.X Redhat 9.0, Enterprise 3 and 4 Fedora Mandrake
Posts: 79

Rep: Reputation: 15
Post Restarting Network Services In Suse


Do any one know if there is a command in suse that will allow you to restart services like Redhat and Mandrake?

Ex. service network restart - start - stop
service dhcpd restart- start - stop





Thanks
 
Old 01-21-2005, 10:00 AM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

Rep: Reputation: 58
Try /etc/init.d/network (start/stop/restart)
 
Old 01-21-2005, 10:00 AM   #3
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 47
Try

ls /sbin/init.d/

One of the scripts here should be your networking startup script, then simply

/sbin/init.d/networking restart
 
Old 01-21-2005, 10:00 AM   #4
meblost
Member
 
Registered: May 2004
Location: At Keyboard
Distribution: Mandrake 10.0, SuSE 9.0
Posts: 114

Rep: Reputation: 15
You could use
Code:
/etc/init.d/network restart
 
Old 01-21-2005, 10:01 AM   #5
meblost
Member
 
Registered: May 2004
Location: At Keyboard
Distribution: Mandrake 10.0, SuSE 9.0
Posts: 114

Rep: Reputation: 15
Oops, sorry for the repeat. I guess I am a slow typer.
 
Old 01-21-2005, 10:07 AM   #6
treedstang
Member
 
Registered: Jul 2003
Distribution: Suse 9.X Redhat 9.0, Enterprise 3 and 4 Fedora Mandrake
Posts: 79

Original Poster
Rep: Reputation: 15
Thanks everyone for the response... for network service info ..

Can the same principal be applied to to restarting dhcpd, samba and others??
 
Old 01-21-2005, 10:09 AM   #7
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

Rep: Reputation: 58
Yes, have a look in /etc/init.d for all available scripts.
 
Old 01-21-2005, 10:19 AM   #8
treedstang
Member
 
Registered: Jul 2003
Distribution: Suse 9.X Redhat 9.0, Enterprise 3 and 4 Fedora Mandrake
Posts: 79

Original Poster
Rep: Reputation: 15
Thanks abisko00 I see them now ...

I guess I would need to change my enviroment settings so I could execute all commands in the /etc/init.d just by typing a single command like >> smb restart >> instead of typing the enitre path like >> /etc/init.d/smb restart
 
Old 01-21-2005, 10:22 AM   #9
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: SuSE, Ubuntu
Posts: 3,511

Rep: Reputation: 58
I guess a simple
Code:
export PATH=$PATH:/etc/init.d
in root's .bashrc will do the job.
 
Old 01-21-2005, 10:33 AM   #10
treedstang
Member
 
Registered: Jul 2003
Distribution: Suse 9.X Redhat 9.0, Enterprise 3 and 4 Fedora Mandrake
Posts: 79

Original Poster
Rep: Reputation: 15
Yep it worked just fine!!! abisko00

Thanks again
 
  


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
Restarting DHCP services AmdMhz Linux - Networking 3 10-31-2004 09:45 PM
Restarting network services Bull Terrier Slackware 2 12-15-2003 09:19 AM
Restarting services... Norrin Linux - Newbie 2 09-03-2003 09:04 PM
restarting services juanb Linux - General 1 01-02-2003 07:20 AM
restarting of services/daemons coopergr Linux - Newbie 3 04-04-2002 08:23 PM


All times are GMT -5. The time now is 10:24 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration