Re: [Exim] Cannot start Exim

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Bill Hacker
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [Exim] Cannot start Exim
Sorry - didn't realize the list was mis-configured ,and replied to the
poster vs the list:

Kirill Miazine wrote:

> * Bill Hacker [2003-11-27 05:35]:
>
>>*BUT* - attempting to execute "/etc/rc.d/exim.sh start" returns:
>>=========================================
>>P?
>> .
>> ??..: not found
>>set_rcvar: not found
>>load_rc_config: not found
>>run_rc_command: not found
>>==========================================
>>
>>- and fails to start Exim... (no lie! <G>)
>>
>>Unable to find anything on any of this in an archive search, see nothing
>>like it in past 2 months 'eyeball' scan of the archives...
>>
>>Where should I look first/
>
>
> /etc/rc.d/exim.sh
>
> Look at /etc/rc.d/exim.sh. And let us look at it too.


Unaltered from the BSD port:
=============================================================================
>


#!/bin/sh
#
# $FreeBSD: ports/mail/exim/files/exim.sh,v 1.6 2003/09/10 13:49:09
sheldonh Exp $
#

# PROVIDE: mail
# REQUIRE: LOGIN
# KEYWORD: FreeBSD shutdown
#       we make mail start late, so that things like .forward's are not
#       processed until the system is fully operational


#
# Add the following lines to /etc/rc.conf to enable exim:
#
#exim_enable="YES"
#
# See exim(8) for flags
#

. /usr/local/etc/rc.subr

name=exim
rcvar=`set_rcvar`

command=/usr/local/sbin/exim
pidfile=/var/run/exim.pid
required_dirs=/var/log/exim
required_files=/usr/local/etc/exim/configure

start_precmd=start_precmd
stop_postcmd=stop_postcmd

extra_commands="reload"

start_precmd()
{
   case $sendmail_enable in
   [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
     warn "sendmail_enable should be set to NONE"
     ;;
   [Nn][Oo]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0)
     case $sendmail_submit_enable in
     [Yy][Ee][Ss]|[Tt][Rr][Uu][Ee]|[Oo][Nn]|1)
       warn "sendmail_submit_enable should be set to NO"
       ;;
     esac
     ;;
   [Nn][Oo][Nn][Ee])
     ;;
   esac
}


stop_postcmd()
{
rm -f $pidfile
}

# set defaults

exim_enable=${exim_enable:-"NO"}
exim_flags=${exim_flags:-"-bd -q30m"}

load_rc_config $name
run_rc_command "$1"
====================================================================
Hmm... going to comment-out those "set defaults' and see what happens...

Thanks,

Bill