1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-22 20:41:26 +00:00
freebsd-ports/mail/mailgraph/files/mailgraph.sh
Ying-Chieh Liao 6252d50796 upgrade to 0.20
PR:		40439
Submitted by:	maintainer
2002-07-11 07:11:58 +00:00

18 lines
340 B
Bash

#!/bin/sh
PREFIX=%%PREFIX%%
case "$1" in
start)
/usr/bin/su www -c "cd ${PREFIX}/www/cgi-bin; ./mailgraph.pl -l /var/log/maillog" & > /dev/null 2>&1 && echo -n ' mailgraph'
;;
stop)
ps -U www | grep mailgraph | awk '{print $1}' | xargs kill && echo -n ' mailgraph'
;;
*)
echo "Usage: `basename $0` {start|stop}" >&2
;;
esac
exit 0