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 |
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. |
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
|
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. |
Quote:
what I want is to do is just restart all those related services , as I found these services always have problem . |
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. |