URGENT . I cant start exim in Debian 3.1

PauGasol

Verified User
Joined
Feb 3, 2004
Messages
125
Hi,

I dont have /etc/init.d/exim , if i reinstall the exim.sh in /usr/local/directadmin/script i always obtain :

update-rc.d: /etc/init.d/exim: file does not exist

i created the file with touch but then file exits,, and same problem,

How can i fix that? what is the command to start exim from command line? i cant start exim :mad:

Thanks
 
:) Solved with : /usr/sbin/exim -bd

But is temporaly option, anyone can paste me his /etc/init.d/exim script for Debian 3.1 or the correct command line.

Thanks
 
Also using debian 3.1


/etc/init.d/exim:


#!/bin/sh
#
# exim This shell script takes care of starting and stopping
# exim.
#
# chkconfig: 2345 80 30
# description: Mail Transfer Agent

BINARY=/usr/sbin/exim
PID=/var/run/exim.pid
EXIM_OPTS=
DAEMON="yes"
QUEUE="15m"
[ "$DAEMON" = yes ] && EXIM_OPTS="$EXIM_OPTS -bd"
[ -n "$QUEUE" ] && EXIM_OPTS="$EXIM_OPTS -q$QUEUE"


# See how we were called.
case "$1" in
start)
# Start daemons.
echo -n "Starting exim: "
#start-stop-daemon --start --pidfile $PID \
# --exec $BINARY -- $EXIM_OPTS -oP $PID
$BINARY $EXIM_OPTS -oP $PID
echo
;;
stop)
# Stop daemons.
echo -n "Shutting down exim: "
if [ -e $PID ]; then kill `cat $PID`; fi
echo
;;
restart)
$0 stop
sleep 3
$0 start
;;
reload)
if [ -e $PID ]; then kill -HUP `cat $PID`; fi
;;
condrestart)
$0 restart
;;
status)
status exim
;;
*)
echo "Usage: exim {start|stop|restart|reload|condrestart|status}"
exit 1
esac

exit 0


There is also a exim4 do you want that script also ?
 
Last edited:
exim4 is for deb offical package and da_exim.deb remove this packages , its not neccesary .

Im waiting for DA team answer my some question i think i never had exim init script in my system before, and works, they made the install.

Many many thanks for the your exim script, works fine. Greetings
 
Back
Top