LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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, 10:54 PM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
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, 12:17 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

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, 05:27 AM   #3
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
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, 06:07 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

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, 09:51 PM   #5
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
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, 12:11 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:57 PM.

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
Open Source Consulting | Domain Registration