FS#20625 - [courier-imap] startup causes authdaemond to be stopped

Attached to Project: Community Packages
Opened by Carl Carstenson (carstenson) - Thursday, 26 August 2010, 16:49 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Friday, 24 September 2010, 03:32 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Tobias Kieslich (tobias)
Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

courier-imap now has an option for starting authdaemond in /etc/rc.d/courier-imap. This startup script also has code for stopping this service, but it is at the end of the start function. It should be moved to the beginning of the stop function.

The three lines that need to be moved from "start" to "stop" are:

if [ $AUTO_AUTHDAEMON="true" ]; then
/etc/rc.d/authdaemond stop
fi





Additional info:
* package version(s) 4.4.1-5

* config and/or log files etc.


Steps to reproduce:

run "/etc/rc.d/courier-imap start"

This shows ":: Starting Authdaemond" at the beginning, but also shows ":: Stopping Authdaemond" at the end.
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Friday, 24 September 2010, 03:32 GMT
Reason for closing:  Fixed
Comment by Carl Carstenson (carstenson) - Friday, 27 August 2010, 22:42 GMT
See  FS#13909  and  FS#20160 . These are all related.

1) The conditions to start and stop authdaemond are wrong and always going to be "true".
2) The default condition needs to be put into /etc/conf.d/courier-imap.
3) The stop code for authdaemond needs to be taken from the end of the start function and put at the beginning of the stop function.
Comment by Simon Streit (ss2) - Friday, 03 September 2010, 01:02 GMT
I confirm this bug.

I moved the three lines as noted above into the stop section and now courier works without the authdaemond being stopped as soon courier's daemons are up and running.

I guess it is very easy to alter the start script and repack it again?

Regards

Loading...