Web Server for friendica.eskimo.com
Automatic Restart and Alarm for Web Service
Posted on January 15, 2022
Because 2.4.52 version of Apache seems to have a bug that causes it to occasionally stall, and because earlier versions have a root exploit that makes returning to them unfeasible, I wrote an automatic recovery script to recover the server in the event of a failure.
What it does is automatically test the web server for a proper response every five minutes. If it fails to respond, it attempts to restart apache, waits a minute to give it time to spool up, then retests.
If the second test is good it logs the failure so I can keep track of how often it is failing. If the second test fails, it turns my speaker volume up to 100%, and I have 100-watts per channel so that’s 200 watts worth of noise and then sends the Star Trek Next Generation Red Alert sound effect to the speakers. I should hear that pretty much no matter what if I’m here, and also sends an e-mail so if I’m out I will be notified via my tablet or laptop.
Hopefully this will prevent long outages like that which occurred last night when Apache decided to silently hang.
BR 549 ☎
in reply to BR 549 ☎ • •i.poastcdn.org/f73ed13c1c11e83…
Gerry (Pureblood)
in reply to BR 549 ☎ • • •rbfarmer
in reply to BR 549 ☎ • • •jmccanneyscience.com/wp-conten…
Mulkurul
in reply to BR 549 ☎ • • •Diane DeHardt
in reply to BR 549 ☎ • • •iam-elegance
in reply to BR 549 ☎ • • •Nanook
in reply to BR 549 ☎ • •Nanook
in reply to Nanook • •BR 549 ☎
in reply to BR 549 ☎ • •Miguela
in reply to BR 549 ☎ • • •Clarice Boomshakalaka Bouvier
in reply to BR 549 ☎ • • •Very glad you're on the mend and thanks for the info re cedar fever; my farmer friends have just begun to acknowledge that they get crook each hay season from..go on, have a guess 😀) itchy eyes, rhinitis..not "unseasonal flu the shots dont work".
it seems that Unicron is maybe not as harsh but more contagious(?such is the theory of the time. i give up.) which isnt to say it cant be outright 'orrible so if there was a visitation, i'm glad it just brushed by. Proof of concept! ❤
BR 549 ☎ likes this.
Harka
in reply to BR 549 ☎ • • •Nanook
in reply to BR 549 ☎ • •Harka
in reply to BR 549 ☎ • • •Harka
in reply to BR 549 ☎ • • •BR 549 ☎
in reply to BR 549 ☎ • •Recovered, thanks everyone for the online support. The doctor was not much help, he said "yup, you've got covid" and slowly backed away...
And when I try to view my pollen video from here, it just shows me one of these:
I don't suppose these free distributed projects are expected to keep media around forever. They must receive many terabytes per day of that crap.
Dusting-off the old Friendica account for today, not sure where to go from here.
Clarice Boomshakalaka Bouvier
in reply to BR 549 ☎ • • •Clarice Boomshakalaka Bouvier
in reply to BR 549 ☎ • • •Miguela
in reply to BR 549 ☎ • • •Happy birthday 😀
Theaitetos (Рцяэыоод)
in reply to BR 549 ☎ • • •Nanook
Unknown parent • •Robert Biloute - on diaspora-fr.org
in reply to BR 549 ☎ • • •(you survived the worst killer virus of all mankind history, so I guess you can skip the gym ^^)
Nanook
in reply to Nanook • •BR 549 ☎
in reply to BR 549 ☎ • •Theaitetos (Рцяэыоод) likes this.
Theaitetos (Рцяэыоод)
in reply to BR 549 ☎ • • •Nanook
in reply to Nanook • •Theaitetos (Рцяэыоод)
in reply to BR 549 ☎ • • •