LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-01-2017, 01:32 AM   #1
anflydi
LQ Newbie
 
Registered: Jan 2017
Posts: 8

Rep: Reputation: Disabled
How to reset computer automatically if freeze


Hello,

How to reset server if freeze? Automatically? Is it a BIOS option? The server should be completely automatic. No human interaction.

Thank you.

Angel
 
Old 01-01-2017, 09:20 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
you can't.
a frozen system is frozen.

but maybe you tell us what the problem is (how/why does it freeze?) and we can fix that instead?

http://xyproblem.info/
 
1 members found this post helpful.
Old 01-01-2017, 12:32 PM   #3
anflydi
LQ Newbie
 
Registered: Jan 2017
Posts: 8

Original Poster
Rep: Reputation: Disabled
I found solution: the "watchdog" program.
 
Old 01-01-2017, 02:28 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,616

Rep: Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962Reputation: 7962
Quote:
Originally Posted by anflydi View Post
I found solution: the "watchdog" program.
...except it won't work AT ALL for a frozen system. Watchdog monitors a PROCESS...if the whole server is frozen, that means the watchdog program is frozen too. A server in a hung state can do/respond to ZERO except the power switch.
 
Old 01-12-2017, 11:51 AM   #5
xj25vm
Member
 
Registered: Jun 2008
Posts: 393

Rep: Reputation: 68
There are some options available. One would be to have another machine on the same network monitor the server - maybe by pinging it periodically - and if it stops responding, to power cycle the server. There are some USB based relays which can be used to kill power to a power socket. This device would be plugged into the second computer over usb, which would be able to cut the power off to the server if it can't contact it any more. Of course, this is a bit brute force - and if it is the type of situation where it needs to be used again and again, maybe a more permanent fix needs to be found to whatever is causing the server to freeze.
 
1 members found this post helpful.
Old 01-12-2017, 03:10 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
http://catb.org/~esr/faqs/smart-questions.html
 
Old 01-14-2017, 12:42 AM   #7
anflydi
LQ Newbie
 
Registered: Jan 2017
Posts: 8

Original Poster
Rep: Reputation: Disabled
Linux automation

The idea is a server to work without human interaction.

- if the server is hacked, it should be reset-to-factory-default.
- if linux freeze, it should be auto-restarted.

Angel
 
Old 01-14-2017, 02:44 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by anflydi View Post
The idea is a server to work without human interaction.

- if the server is hacked, it should be reset-to-factory-default.
i find this notion naive.
you would also have to automate detection of a hacked server. how?

Quote:
- if linux freeze, it should be auto-restarted.
well that has been answered already.
there seems to be a hardware switch approach, but i'm still for finding out WHY your server freezes.

it seems to me you have a real problem here which you are not telling us about!

fwiw, i've been running a server for -- i lost count, more than a year definitely, maybe 2 -- and i was NEVER forced to reboot it, it never froze, and also hasn't been hacked (to the best of my knowledge). that's what you should strive for, and not the band-aid strategy you are outlining here.
 
1 members found this post helpful.
  


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
[SOLVED] pclinuxos 2007 no longer boots, stuck in grub after freeze and hard reset mbvpixies78 Linux - Newbie 3 02-15-2013 11:18 PM
Reset the password automatically chandrasekhar.datrika Linux - Newbie 10 05-16-2012 10:11 AM
Freeze and hd-reset with samsung MP0402H p1z5p4mm3 Linux - Hardware 1 04-12-2007 02:14 PM
MPlayer sound gets reset automatically gregorian Linux - Software 3 02-21-2007 03:07 AM
Having to re-name xp computer every time linux computer is reset sboothman Linux - Networking 4 12-24-2004 02:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:18 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
Open Source Consulting | Domain Registration