#!/bin/sh

#
#   Stop script to stop the maildrop python process
#

# Set the maildrop main directory
reldir=`dirname $0`
MAILDROP_HOME=$reldir

# Where is the pid file?
MAILDROP_PID=$MAILDROP_HOME/var/maildrop.pid

# Extract the PIDs
MAILDROP_PIDS=`cat $MAILDROP_PID`

# Remove the pid file
rm -f $MAILDROP_PID

# Kill the process
kill $MAILDROP_PIDS
