3 # $Id: spamass-milter,v 1.4 2002/07/24 16:19:53 dnelson Exp $
5 # Sample init script for Debian GNU/Linux
7 # Copyright (c) 2002 Georg C. F. Greve <greve@gnu.org>,
8 # all rights maintained by FSF Europe e.V.,
9 # Villa Vogelsang, Antonienallee 1, 45279 Essen, Germany
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation; either version 2 of the License, or
14 # (at your option) any later version.
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
21 # You should have received a copy of the GNU General Public License
22 # along with this program; if not, write to the Free Software
23 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 # Michael Brown <michaelb@opentext.com>
29 PATH=/sbin:/bin:/usr/sbin:/usr/bin
30 DAEMON=/etc/mail/bin/spamass-milter
31 SOCKET=/var/run/sendmail/spamass.sock
32 DESC="Sendmail milter plugin for SpamAssassin"
34 test -x $DAEMON || exit 0
40 echo -n "Starting $DESC: "
42 start-stop-daemon --start -b --exec $DAEMON --oknodo -- -p $SOCKET
47 echo -n "Stopping $DESC: "
49 start-stop-daemon --stop --exec $DAEMON --oknodo
56 echo -n "Restarting $DESC: "
58 start-stop-daemon --stop --exec $DAEMON --oknod
61 start-stop-daemon --start -b --exec $DAEMON --oknodo -- -p $SOCKET
68 echo "Usage: $N {start|stop|restart}" >&2