Article View: alt.privacy.anon-server
Article #283869Dip in holland stats
From: Nathan Hale
Date: Tue, 09 Aug 2016 21:34
Date: Tue, 09 Aug 2016 21:34
63 lines
2710 bytes
2710 bytes
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
> Put the code below into a file in /etc/ called mixcheck.sh. Make it executable 'chmod 755 mixcheck.sh'
>
> Change the your@email.address in the code.
>
> The code checks every hour by cron to see if mixmaster is running. If it isn't, it rechecks every minute for 10 minutes to see if it has started again. This 10 minute loop is in case you have it down for short maintenance.
#!/bin/bash
#
# Script to see if mixmaster is running.
# mixcheck.sh
#
i=10
while [ "$i" -gt 0 ]; do
psvar=$(ps -ef)
if [[ "$psvar" =~ "mixmaster" ]]; then
exit 0 # matched
else
sleep 1m # no match
fi
let i--
done
echo "Mixmaster not running!" | mail -s "Mixmaster not running!" your@email.address
exit 0
Thanks for this and done...!!
Kind Regards
B
Execute it by cron like this:
# Every 60 minutes check if mixmaster running
*/60 * * * * /etc/mixcheck.sh
-----BEGIN PGP SIGNATURE-----
Version: N/A
iQIcBAEBAgAGBQJXqkgiAAoJEFHFlkOXyWQqC1QQAI4YomCuaid0AETmojCicXVX
0iuEUILCmhKwJtwX5dI3DDIFlU4WSh1Lnt4UhYTlV7+SgFRsMjhUreBgdZHGMF2s
/4emuCnhS/pAQoq2oUtT8D9UfOMLeWEul7f7SYUNCdMatDWH2wm9DW2m+fP/D306
evQzAhPCXEZUq+5AxeQOSdoxKfvEBJ6aOrCtTKoNqkHDwnGePXEcTPNc+qaL+c3v
j0MSMhSiD3vQvj7CtzWooRP+TjXhXHUTuTaMtk/MvzJ94imYTXmT62C0lehc91mA
PtaZ3RMDAh6D/+YbkQ2+qrHUPQv6trcCQatfuzvZio02Tj5EKfbv9Va6em66qUjj
dogFrZJC1CzWe5bplsNuAeUac4PGyobOeReLUOQiaGI0DdzyQrFNEx3TYVVV006B
mM1YdBnlZO2gSVmAQnvNpgt05mU/NN7M+F5n9pmG/5d2a32yQ6yyNyKuv26CPLVj
sr9NcMPMUZvWhAgOfRJ/XLBsCLy2gIdtvq/L/68+WXi5DYFy87bPU7pNM2Q960c9
6BJfPIk46sJyx8GFCRO6bRjJyPyJjPq0PkUIju/H9ZitUvtT2HFVtkXZjo6COROv
rZBy5HR9TeDAzpeP4LJdqdvAuwOG8em5DgIvlqATXfoLUS5mw/by/Vbj73VWa+66
Tiagnh7Y5TfqCKuvOA2b
=bzRg
-----END PGP SIGNATURE-----
Technical Details
Message-ID:
<0ca6b2b9888dcb71f514394d78d6bb9f@remailer.org.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<44f91b6f5ecf8e9e275bfc6b7d961ad7@anon.holland.remailer.nl>Show Full Headers
Complete Article Headers
Message-ID: <0ca6b2b9888dcb71f514394d78d6bb9f@remailer.org.uk> Subject: Dip in holland stats Date: Tue, 09 Aug 2016 21:34:22 +0000 From: Nathan Hale <nobody@remailer.org.uk> References: <44f91b6f5ecf8e9e275bfc6b7d961ad7@anon.holland.remailer.nl> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Injection-Info: mail2news.mixmin.net; mail-complaints-to=abuse@mixmin.net Newsgroups: alt.privacy.anon-server X-Received-Body-Crc: 2357225168 X-Received-Bytes: 2618 Comments: This message did not originate from the Sender address above. It was remailed automatically by anonymizing remailer software. Please report problems or inappropriate use to the remailer administrator at <abuse@remailer.org.uk>.