Cyrus 2.1 and 2.2 init scripts

Benjamin Seidenberg astronut at dlgeek.net
Mon Oct 16 21:08:57 UTC 2006


Ross Boylan wrote:
> On Mon, 2006-10-16 at 17:41 -0300, Henrique de Moraes Holschuh wrote:
>   
>> On Mon, 16 Oct 2006, Ross Boylan wrote:
>>     
>>> Since 2.1 and 2.2 basically do the same thing, invoking cyrmaster, I'm
>>> not sure this is a problem, but it looks odd.
>>>       
>> The problem is that the executables are named the same.  We can fix this
>> only by adding a sentinel file to *both* packages and testing for that file.
>> It must be a non-conffile.
>>
>>     
>>> Is this behavior intended, have I misunderstood something, or is this
>>> worth filing a bug about?
>>>       
>> I'd say it is worth a bug report, yes.  The fix required for both packages
>> is trivial.  We can either add a new sentinel file to /usr/lib/cyrus, or we
>> can grep for a proper version for PACKAGE_VERSION in
>> /usr/lib/cyrus/cyrus-hardwired-config.txt if that file is still there in
>> 2.2.
>>     
>
> OK.  I'll wait to see if there's any other discussion before filing a
> bug.
>
> I'm not sure there's any fix for people like me who have already removed
> 2.1; obviously I'm not going to get updated files or init scripts for
> the 2.1 package.  Maybe a NEWS item would be appropriate?
>
> For now, I stuck exit 0 at the top of init.d/cyrus21
>
>   
Just delete it. It's deleted on package purge, but not removal (which is 
what happens when you install 2.2). I think that policy prevents us from 
removing it in our postinst since it's a conffile.

Benjamin



More information about the Pkg-Cyrus-imapd-Debian-devel mailing list