Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
...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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.