LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-29-2009, 11:54 PM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 30
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
 
Old 03-30-2009, 01:17 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
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.
 
Old 03-30-2009, 06:27 AM   #3
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 30
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
 
Old 03-30-2009, 07:07 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
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.
 
Old 03-30-2009, 10:51 PM   #5
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by linuxlover.chaitanya View Post
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 .
 
Old 03-31-2009, 01:11 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
Restarting rsh hopefully should solve your problem. Those services use rsh by default.
 
  


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
How do I restart X-Server? pxumsgdxpcvjm Fedora 4 12-21-2007 07:00 AM
Script to restart application services on remote systems vinayhr Programming 3 09-04-2006 01:37 AM
remote restart server without keyboard dereko Debian 1 08-05-2005 09:01 PM
Remote Restart Tomcat PerfectReign Linux - Security 2 05-16-2005 12:33 PM
remote restart apache sim Linux - Software 1 06-11-2002 06:49 AM


All times are GMT -5. The time now is 02:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration