[dovecot] Re: dovecot RPM for Red Hat Linux

Farkas Levente lfarkas at bnap.hu
Mon Apr 14 12:14:37 EEST 2003


here is what we use to compile the cvs.

Warren Togami wrote:
> 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
> 
> 
> 
> 


-- 
   Levente                               "Si vis pacem para bellum!"
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dovecot-doc.patch
URL: <http://dovecot.org/pipermail/dovecot/attachments/20030414/eb1a778c/attachment-0005.pl>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dovecot-libtool.patch
URL: <http://dovecot.org/pipermail/dovecot/attachments/20030414/eb1a778c/attachment-0006.pl>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dovecot.init
URL: <http://dovecot.org/pipermail/dovecot/attachments/20030414/eb1a778c/attachment-0007.pl>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dovecot.pam
URL: <http://dovecot.org/pipermail/dovecot/attachments/20030414/eb1a778c/attachment-0008.pl>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dovecot.spec
URL: <http://dovecot.org/pipermail/dovecot/attachments/20030414/eb1a778c/attachment-0009.pl>


More information about the dovecot mailing list