LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   How to reset computer automatically if freeze (https://www.linuxquestions.org/questions/linux-server-73/how-to-reset-computer-automatically-if-freeze-4175596559/)

anflydi 01-01-2017 01:32 AM

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

ondoho 01-01-2017 09:20 AM

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/

anflydi 01-01-2017 12:32 PM

I found solution: the "watchdog" program.

TB0ne 01-01-2017 02:28 PM

Quote:

Originally Posted by anflydi (Post 5648937)
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.

xj25vm 01-12-2017 11:51 AM

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.

Habitual 01-12-2017 03:10 PM

http://catb.org/~esr/faqs/smart-questions.html

anflydi 01-14-2017 12:42 AM

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

ondoho 01-14-2017 02:44 AM

Quote:

Originally Posted by anflydi (Post 5654710)
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.


All times are GMT -5. The time now is 05:48 PM.