Re: [exim] exim script

Top Page
Delete this message
Reply to this message
Author: Ted Cooper
Date:  
To: exim-users
Subject: Re: [exim] exim script
Emmanuel Salinas wrote:
> Hi there.. I'm still can't startup my exim..
>
> I found this script and I have some question about it...
>
> source /etc/init.d/functions
> on slackware.. Which is my "source"???


Slackware doesn't have function library hanging around (I had to
restrict myself from saying "doesn't have that crap laying around" ..
oops, guess I said it :P) I haven't played enough with SW12 to know for
sure, but I don't think it has things like LoadProc or KillProc.

My full rc.exim ...

#!/bin/bash

case "$1" in
  'start')
    echo "Exim..."
    /usr/bin/exim -bd -q11m
    ;;
  'stop')
    echo "Killing exim..."
    /bin/killall exim
    ;;
  'restart')
    . /etc/rc.d/rc.exim stop
    sleep 1s
    . /etc/rc.d/rc.exim start
    ;;
  *)
    echo "Usage: start|stop|restart"
esac


It does what it needs to and assumes you're not going to do anything
silly like try to start it twice. Not that it really matters - exim just
logs a line saying it can't bind and sits there.


--
The Exim Manual
http://www.exim.org/docs.html
http://www.exim.org/exim-html-current/doc/html/spec_html/index.html