#!/bin/sh

# Restarts the popauthor.pl script.  It fails from time to time and I'm too
# lazy to learn perl to figure out why.  This is executed every five minutes
# out of root's crontab.

if [ -d /proc/`cat /var/run/popauth.watcher.pid` ]; then 
	exit 0
else
    /usr/local/scripts/popauthor.pl &
    exit 0
fi