Re: Cyrus-imapd fails to bind on reboot when assigned to listen on specific IP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> On Sun, 21 Mar 2021 at 16:51, Simon Matter <simon.matter@xxxxxxxxx> wrote:
>> > When I don't specify an IP address, cyrus-imapd starts correctly on a
>> > server reboot.
>> >
>> > When I specify IP / protocol:
>> >
>> >    imap   cmd="imapd"   listen="192.168.1.230:imap"  prefork=5
>> proto=tcp4
>> >
>> > cyrus-imapd tries to bind to those before it is available, and fails:
>> >
>> > Mar 20 20:53:31 emp87 cyrus/master[973]: unable to bind to imap/ipv4
>> > socket: Cannot assign requested address
>> > Mar 20 20:53:31 emp87 cyrus/master[973]: unable to create imap
>> listener
>> > socket: Cannot assign requested address
>> >
>>
>> While thinking about it again, wouldn't it make sense to make master a
>> bit
>> more robust so that it tries to start a service if it failed before, as
>> part of its maintenance functionality?
>
> Depends if restarting is making things worse it's not always the correct
> thing
> to do. You can change the systemd config to always restart it but this
> sort of
> fix is always because of another underlying problem and not a good sign.

Sorry, I wasn't clear enough, I was talking about cyrus master, not
systemd. Cyrus master manages starting of its service children and it
could also handle the situation when a process can not be started because
a bind fails.

>
>  I'm old and not the biggest systemd fan or biggest knowledge about it.
> It is interesting seeing this thread. I can not see why cyrusd would not
> depend not network and FS to be up or any email service not depending
> on these 2 things working.
>

I agree with you. The systemd units I see in Red Hat distributions are
usually just there to handle the most simple configuration, everything you
want more requires you to fiddle with your own configs. It's my feeling
that the systemd devs were inspired by Windows and now it brings us some
kind of Windows feelings to Linux :)

Regards,
Simon


------------------------------------------
Cyrus: Info
Permalink: https://cyrus.topicbox.com/groups/info/Te727080483918be4-Mce89caa35ab98145ae00af1c
Delivery options: https://cyrus.topicbox.com/groups/info/subscription




[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux