Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 8471 - broken courier-imapd authdaemon script
Summary: broken courier-imapd authdaemon script
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Nick Hadaway
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-09-27 11:55 UTC by Christoph Handel
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christoph Handel 2002-09-27 11:55:26 UTC
The start/stop script included with courier-imap for the authdaemon is 
broken.

it tries to start the authdaemon using start-stop-daemon --pidfile

looks like authdaemon is started in two steps so the reported pid-file is 
wrong.
dirty fix: 


start() {
        checkconfig || return 1
        setauth

        ebegin "Starting ${AUTHDAEMOND}"
# PID is broken
#       start-stop-daemon --quiet --start --exec \
#               /usr/bin/env - "${AUTHLIB}/${AUTHDAEMOND}" start
#               -m --pidfile /var/run/authdaemon.pid
#
        start-stop-daemon -x "${AUTHLIB}/${AUTHDAEMOND}"  --start --exec \
                /usr/bin/env - "${AUTHLIB}/${AUTHDAEMOND}" start
        eend $?
}

stop() {
        setauth

        ebegin "Stopping ${AUTHDAEMOND}"
# PID is broken
#       start-stop-daemon --quiet --stop \
#               --pidfile /var/run/authdaemon.pid
        start-stop-daemon --quiet --stop \
                -x "${AUTHLIB}/${AUTHDAEMOND}"
        eend $?
}
Comment 1 Nick Hadaway 2002-09-27 23:31:40 UTC
You appear to have old version of the init scripts.  The newest init scripts
reference the proper "/var/lib/courier-imap/authdaemon/pid" file...

emerge rsync
rm /etc/init.d/authdaemon
mv /etc/courier-imap /root/courier-config-backup (so new config files can be
installed)
emerge courier-imap
emerge clean

Let me know how things go.
Comment 2 Christoph Handel 2002-09-28 05:49:44 UTC
my version was: 1.5.1

emerge rsync

version available is still 1.5.1 *hm*
anyhow rebuilding... it's working.