LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Restart all remote server (https://www.linuxquestions.org/questions/linux-newbie-8/restart-all-remote-server-715379/)

ust 03-29-2009 10:54 PM

Restart all remote server
 
We use the remote service like rcp , rlogin in my server to connect remote server (RH), if I want to restart all these related daemon by one time , can advise how to do it ?

previously , I do chkconfig rlogin off then on , chkconfig rcp off then on , chkconfig rsync off then on , if I want to restart by one deamon , what can i do ? thx

linuxlover.chaitanya 03-30-2009 12:17 AM

chkconfig is used to change the boot time start/stop of a daemon. Instead you can use /etc/init.d/<daemon> start/stop/restart/reload option.
If you want to do it in command then you can write a script and put all the commands to start/stop all the daemons and run the script either manually or use cron to run it at automatically at specified time.

ust 03-30-2009 05:27 AM

thx , I know how to write a script , can advise if I want to restart all these related services , which daeman contains all of it ( so that I don't need to restart it one by one ) ? thx

linuxlover.chaitanya 03-30-2009 06:07 AM

rcp uses rsh daemon by default. So I guess restarting rsh service should do what you want to.
But it would be more useful if you could elaborate what you are trying to do.

ust 03-30-2009 09:51 PM

Quote:

Originally Posted by linuxlover.chaitanya (Post 3492382)
rcp uses rsh daemon by default. So I guess restarting rsh service should do what you want to.
But it would be more useful if you could elaborate what you are trying to do.

thx replies ,

what I want is to do is just restart all those related services , as I found these services always have problem .

linuxlover.chaitanya 03-31-2009 12:11 AM

Restarting rsh hopefully should solve your problem. Those services use rsh by default.


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