Update of /cvsroot/devil-linux/build/scripts/scripts
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv21634/scripts
Added Files:
dkim-milter
Log Message:
added dkim-milter init script
--- NEW FILE: dkim-milter ---
#!/bin/bash
#
# $Source: /cvsroot/devil-linux/build/scripts/scripts/dkim-milter,v $
# $Revision: 1.1 $
# $Date: 2009/05/15 19:32:20 $
#
# http://www.devil-linux.org
#
### BEGIN INIT INFO
# Provides: dkim-milter
# Required-Start: $network $syslog $named
# Required-Stop: $network $syslog $named
# Default-Start:
# Default-Stop:
# Description: starts something
### END INIT INFO
# settings
source /etc/sysconfig/config
# parameters
NAME="DKIM milter"
CONFIGNAME=DKIM_MILTER
DAEMON=/usr/sbin/dkim-filter
PARAMETER="-p local:/var/run/dkim-filter.sock -P /var/run/dkim-filter.pid -l -x /etc/mail/dkim/dkim-filter.conf"
# source function library
source /etc/init.d/functions
eval START=\$START_$CONFIGNAME
# Determine the base and follow a runlevel link name.
base=${0##*/}
link=${base#*[SK][0-9][0-9]}
# Force execution if not called by a runlevel directory.
test $link = $base && START=yes
test "$START" = "yes" || exit 0
if [ ! -e $DAEMON ]; then
echo
echo "$DAEMON not found. Did you install the package?"
exit 1
fi
case "$1" in
start)
echo -n "Starting $NAME: "
loadproc $DAEMON $PARAMETER
;;
stop)
echo -n "Shutting down $NAME: "
killproc $DAEMON
;;
restart)
$0 stop
sleep 1
$0 start
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
;;
esac
|