LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-10-2016, 10:22 AM   #1
selym
LQ Newbie
 
Registered: Jun 2016
Location: USA
Posts: 2

Rep: Reputation: Disabled
Restarting crashed service automatically


Hi All-

I seem to have an issue with the sshd service failing intermittently on a RedHat 6.3 virtual machine. Twice now in the last 3 weeks I've had to restart the service from the console.

I'll work on investigating the problem (I'm new, so I'm slow), but in the meantime, I'd like to set something up in the interim to help avoid further random interruptions. What is the best (or simplest) way to automatically restart sshd on crash?

One thing worth mentioning is this machine is in an isolated network environment. It was configured and then moved to its final destination, so I cannot (at least not easily) install new packages via remote repos.

Thank you.
 
Old 06-10-2016, 07:53 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530Reputation: 3530
Quote:
Originally Posted by selym View Post
I seem to have an issue with the sshd service failing intermittently
The reasons the SSH service would fail are in the highly improbable range. Restarting a service without investigating why (and remedying that) is like tending to symptoms instead of addressing the root cause. So I'd say gather information, analyse and fix the root cause instead of blithely restarting a service like nothing exceptional happened.
 
Old 06-20-2016, 09:33 AM   #3
selym
LQ Newbie
 
Registered: Jun 2016
Location: USA
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by unSpawn View Post
The reasons the SSH service would fail are in the highly improbable range. Restarting a service without investigating why (and remedying that) is like tending to symptoms instead of addressing the root cause. So I'd say gather information, analyse and fix the root cause instead of blithely restarting a service like nothing exceptional happened.
Thanks for the reply unSpawn. To address your "restarting without investigating" comment, I partially noted why in my second paragraph. I was investigating, but finding nothing useful in the logs I was searching, so I needed more time to investigate why this was happening.

I'm also somewhat new to linux administration, so I'm slow at figuring out issues, but users were waiting on me to get them reconnected, so the clock was ticking until I either fixed the issue or it happened again. If I don't know a quick solution to a problem, or can't put my complete attention on an issue, I try to find a temporary workaround to get things/users working, then attack the root problem. What I was asking for was a solution to buy me time, not a permanent workaround.

I'm not sure where you got the impression I was "blithely restarting a service like nothing exceptional happened", but I have to chuckle to myself at how different peoples perceptions can be when digesting the exact same post.

For anyone else finding this, the issue ended up being rather simple. We were issued an ip for this machine that had already been assigned elsewhere. Duplicate IP.
 
  


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
Linux server automatically restarting. a.abdulna Linux - Newbie 3 05-28-2013 06:52 AM
Automatically restarting a dropped connection SwissHeritage Slackware 3 04-05-2009 08:51 AM
Restarting ADSL Connection Automatically ewartgb Linux - Networking 1 01-29-2007 10:56 PM
Restarting X....Automatically? tubatodd Slackware 2 12-12-2006 12:06 PM
Restarting x windows automatically john8675309 Linux - General 1 10-22-2003 06:47 PM


All times are GMT -5. The time now is 06:36 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