1#!/sbin/sh 2# /etc/init.d/greymilter : link this file with /etc/rc2.d/S78greymilter 3 4# Usage : 5# /usr/local/bin/milter-greylist [-ADvqST] [-a autowhite] [-d dumpfile] 6# [-f configfile] [-w delay] [-u username] [-L cidrmask] -p socket 7# 8# Conf : /etc/mail/greylist.conf 9 10mildir="/var/milter-greylist" 11socket="$mildir/milter-greylist.sock" 12binpath="@BINDIR@" 13user="@USER@" 14 15OPTIONS="-v -w 14m" 16 17case "$1" in 18 start) 19 # Start daemon. 20 echo "Starting milter-greylist: ... \c" 21 chown $user $mildir 22 $binpath/milter-greylist $OPTIONS 23 echo "done." 24 ;; 25 stop) 26 # Stop daemons. 27 echo "Shutting down milter-greylist: ... \c" 28 /usr/bin/pkill milter-greylist 29 echo "done." 30 ;; 31 restart) 32 echo "Restarting milter-greylist: ... \c" 33 /usr/bin/pkill milter-greylist 34 $binpath/milter-greylist $OPTIONS 35 echo "done." 36 ;; 37 *) 38 echo "Usage: $0 {start|stop|restart}" 39 exit 1 40esac 41exit 0 42