#!/bin/sh

# Using splogger to send the log through syslog.
# Using qmail-local to deliver messages to Maildir format by default

case "$1" in
start)
	exec env - PATH="@PREFIX@/qmail/bin:$PATH" \
		qmail-start ./Maildir/ splogger qmail&
	exit 0
	;;
stop)
	exec killall qmail-send
	;;
*)
	echo "Usage: `basename $0` {start|stop}" >&2
	exit 64
	;;
esac
