#!/bin/sh POPFILE_HOME=/var/log/popfile export POPFILE_HOME case "$1" in start) /bin/echo -n "Starting POPFile Spam Filter...." cd $POPFILE_HOME /usr/bin/perl $POPFILE_HOME/popfile.pl 1> /dev/null 2> /dev/null & /bin/echo "done." ;; stop) /bin/echo -n "Stopping POPFile Spam Filter...." /bin/kill -TERM `/bin/cat $POPFILE_HOME/popfile.pid` 1> /dev/null 2> /dev/null /bin/echo "done." ;; *) echo $"Usage: $0 {start|stop}" exit 1 esac