El Rancho San Benito Community Resource Website
San Benito County Community Resource Website

--Paul McNett, Earthling
Home
XML

Kerio Mail Server Recuscitation - May 12, 2005 22:32
I'm now using Kerio Mail Server at a client site as well as for my
own mail server needs. It is a fine product with good features, but
unfortunately it likes to commit suicide on a fairly regular basis,
depending on whether you use the Outlook Connector, apparently.

Anyway, that just won't do, so here is a quick-and-dirty Python 
script, run from cron every minute, that will check if Kerio is
running and, if not, bring it back to life:



#!/usr/bin/env python

""" Restart KMS if it has died (Kerio can be fragile).

This is run every minute from a cron job.
"""

import sys
import os

f = os.popen("ps -A | grep mailserver")

for line in f.readlines():
        if "grep mailserver" not in line:
                if "mailserver" in line:
                        sys.exit()

os.system("/etc/init.d/keriomailserver start")

#-- end

© 2005 Paul McNett       [/Computing/Linux] permanent link


Automatic Update Mechanism Needed for Firefox - May 12, 2005 22:19
Kudos to Mozilla for the quick turnaround for security fixes. But,
it is becoming a maintenance headache having to download a complete
4.7 MB download of Firefox, and click through the Windows Installer
on every single machine.

Mozilla, please look into providing patches instead, posted to an
ftp server that my scripts can check and apply to my installed
user base automatically. This will be more efficient for everyone.
Thanks!

© 2005 Paul McNett       [/Computing] permanent link

Feel free to link to a story by using the 'permanent link' feature. Please do not reprint a substantial part of a story without permission. Please make sure to have some fun every day, because time keeps on ticking away.