LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   SUSE / openSUSE (https://www.linuxquestions.org/questions/suse-opensuse-60/)
-   -   Restarting Network Services In Suse (https://www.linuxquestions.org/questions/suse-opensuse-60/restarting-network-services-in-suse-280504/)

treedstang 01-21-2005 09:45 AM

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

abisko00 01-21-2005 10:00 AM

Try /etc/init.d/network (start/stop/restart)

leonscape 01-21-2005 10:00 AM

Try

ls /sbin/init.d/

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

/sbin/init.d/networking restart

meblost 01-21-2005 10:00 AM

You could use
Code:

/etc/init.d/network restart

meblost 01-21-2005 10:01 AM

Oops, sorry for the repeat. I guess I am a slow typer.

treedstang 01-21-2005 10:07 AM

Thanks everyone for the response... for network service info ..

Can the same principal be applied to to restarting dhcpd, samba and others??

abisko00 01-21-2005 10:09 AM

Yes, have a look in /etc/init.d for all available scripts.

treedstang 01-21-2005 10:19 AM

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

abisko00 01-21-2005 10:22 AM

I guess a simple
Code:

export PATH=$PATH:/etc/init.d
in root's .bashrc will do the job.

treedstang 01-21-2005 10:33 AM

Yep it worked just fine!!! abisko00

Thanks again


All times are GMT -5. The time now is 08:25 AM.