[dovecot] Re: dovecot RPM for Red Hat Linux

Warren Togami warren at togami.com
Mon Apr 14 08:58:34 EEST 2003


On Sun, 2003-04-13 at 15:42, Warren Togami wrote:
> http://bugzilla.fedora.us/show_bug.cgi?id=160
> 
> This .src.rpm is dovecot with RH-specific default settings.  I modified
> Jeremy Katz' dovecot-0.99.8.1 package a bit.

I ran into and fixed a few packaging problems listed below, but the last
two I'm not exactly sure how to fix.  Any suggestions?

One problem within /etc/init.d/dovecot
======================================
start() {
        # Check if pxe is already running
        if [ ! -f /var/lock/subsys/dovecot ]; then
            echo -n $"Starting $prog: "
            /usr/sbin/dovecot &
            [ -n "`pidofproc /usr/sbin/dovecot`" ] && success
            RETVAL=$?
            [ $RETVAL -eq 0 ] && touch /var/lock/subsys/dovecot
            echo
        fi
}

This line "/usr/sbin/dovecot &" executes in the background, but the next line "[
-n "`pidofproc /usr/sbin/dovecot`" ] && success" happens too soon, causing a non
zero return value and a FAILED message during bootup.  I confirmed this by
adding "sleep 5" between the two lines, giving it enough time to startup
completely before testing for the pid.  It no displays the fake FAILED message
during bootup.  What should be the proper fix for this?

RH init script problem
======================
Another problem happens during RH's init scripts after you reboot.  By default
dovecot uses /var/run/dovecot/login/ as a directory to create unix sockets for
login.  RH's init script displays an error messages when I tries to remove
/var/run/*/* files because it is a directory, not a file.  I changed dovecot's
default to /var/run/dovecot and it now avoids this error.

chkconfig problem
=================
[root at goku log]# chkconfig --list |grep dovecot
dovecot         0:off   1:off   2:off   3:off   4:off   5:off   6:off
[root at goku log]# chkconfig dovecot on
[root at goku log]# chkconfig --list |grep dovecot
dovecot         0:off   1:off   2:off   3:off   4:off   5:off   6:off
The init.d and rc.d stuff seems to have problems, I haven't analyzed this yet.

Service name problem
====================
During startup it says "5dovecot: Starting Dovecot Imap:"
I'm not sure why it says "5dovecot" rather than "dovecot".  Any ideas?

Warren Togami
warren at togami.com





More information about the dovecot mailing list