Why to restart Dovecot after NGINX build/update ?

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
15,647
Location
www.poralix.com
Hello,

I'm wondering why to restart dovecot after nginx build/update? Is it a bug or a designed action?

Code:
make[1]: Leaving directory `/usr/local/directadmin/custombuild/nginx-1.6.2'
Using 185.bb.cc.dd for your server IP
Shutting down dovecot:                                     [  OK  ]
Starting dovecot:                                          [  OK  ]


I used the following command:

Code:
./build update_versions

to update the following software:

DirectAdmin 1.45.4 to 1.46.1
Nginx 1.6.1 to 1.6.2
cURL 7.37.1 to 7.38.0
MySQL 5.5.39 to 5.5.40


with an actual for the moment version of CustomBuild 2.x script.
 
dovecot.conf (/etc/dovecot) uses SSL cert of Apache/Nginx. When you switch from one webserver to another, it replaces the full path to the cert, and a dovecot restart is needed then to load it.
 
Thank you for the clarification. We did not switch, just upgraded software with:


Code:
./build update_versions


Not a big deal of course for us, but still... is there any chance for us to have a variable check so to skip dovecot restarting if it's a regular update?


Or you probably think that somebody might switch from one webserver to another with update_versions?
 
Hm.. Are you sure your dovecot.conf file didn't have "/etc/httpd/conf/" (if reverse-proxy: "/etc/nginx") paths inside? Because CB should restart dovecot only if it detects it there.
 
Back
Top