-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I got it from:

http://savannah.gnu.org/cgi-bin/viewcvs/spamass-milt/spamass-milt/cont
rib/


 
#!/bin/sh
#
# Sample init script for Debian GNU/Linux
#
#
#  Copyright (c) 2002 Georg C. F. Greve <[EMAIL PROTECTED]>,
#   all rights maintained by FSF Europe e.V., 
#   Villa Vogelsang, Antonienallee 1, 45279 Essen, Germany
#
#   This program is free software; you can redistribute it and/or
modify
#   it under the terms of the GNU General Public License as published
by
#   the Free Software Foundation; either version 2 of the License, or
#   (at your option) any later version.
#  
#   This program is distributed in the hope that it will be useful,
#   but WITHOUT ANY WARRANTY; without even the implied warranty of
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#   GNU General Public License for more details.
#  
#   You should have received a copy of the GNU General Public License
#   along with this program; if not, write to the Free Software
#   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 
02111-1307  USA
#
#   Contact:
#            Michael Brown <[EMAIL PROTECTED]>
#

PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/etc/mail/bin/spamass-milter
SOCKET=/var/run/sendmail/spamass.sock
DESC="Sendmail milter plugin for SpamAssassin"

test -x $DAEMON || exit 0

set -e

case "$1" in
  start)
 echo -n "Starting $DESC: "

 start-stop-daemon --start -b --exec $DAEMON --oknodo -- -p $SOCKET

 echo "${DAEMON}"
 ;;
  stop)
 echo -n "Stopping $DESC: "

 start-stop-daemon --stop --exec $DAEMON --oknodo 
 /bin/sleep 5s
 /bin/rm -f $SOCKET

 echo "${DAEMON}"
 ;;
  restart)
 echo -n "Restarting $DESC: "

 start-stop-daemon --stop --exec $DAEMON --oknod
 /bin/sleep 5s
 /bin/rm -f $SOCKET
        start-stop-daemon --start -b --exec $DAEMON --oknodo -- -p
$SOCKET

        echo "${DAEMON}"

 ;;
  *)
 N=$0
 echo "Usage: $N {start|stop|restart}" >&2
 exit 1
 ;;
esac

exit 0


-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 6.5.8 for non-commercial use <http://www.pgp.com>

iQA/AwUBPQ95Nc0q7cR88Y/bEQKLMwCgoFWA0COESl69gRTO4Y6U1i3z9kwAnjIF
NB0k+p1/yAT9BB7RBwurk6Vi
=xJXt
-----END PGP SIGNATURE-----



----------------------------------------------------------------------------
                   Bringing you mounds of caffeinated joy
                      >>>     http://thinkgeek.com/sf    <<<

_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to