• Simon Deziel's avatar
    dovecot: master SIGTERM child that are slow to die · 6377b1c4
    Simon Deziel authored
    When doing a service reload, I noticed the following:
    
        ```Mar 22 15:52:27 smtp dovecot: master: Warning: SIGHUP received - reloading configuration
        Mar 22 15:52:27 smtp dovecot: imap(simon): Server shutting down. in=35309 out=232805
        Mar 22 15:52:27 smtp dovecot: imap(simon): Server shutting down. in=24600 out=1688166
        Mar 22 15:52:27 smtp dovecot: imap(simon): Server shutting down. in=14026 out=95516
        Mar 22 15:52:27 smtp dovecot: imap(simon): Server shutting down. in=13776 out=141513
        Mar 22 15:52:33 smtp dovecot: master: Warning: Processes aren't dying after reload, sending SIGTERM.
        Mar 22 15:52:33 smtp dovecot: master: Error: service(imap): kill(5806, 15) failed: Permission denied
        Mar 22 15:52:33 smtp dovecot: master: Error: service(imap-login): kill(5804, 15) failed: Permission denied
        Mar 22 15:52:33 smtp dovecot: master: Error: service(config): kill(506, 15) failed: Permission denied
        Mar 22 15:52:33 smtp kernel: [65542.184326] audit: type=1400 audit(1553284353.609:82): apparmor="DENIED" operation="signal" profile="dovecot" pid=414 comm="dovecot" requested_mask="send" denied_mask="send" signal=term peer="/usr/lib/dovecot/imap"
        Mar 22 15:52:33 smtp kernel: [65542.197596] audit: type=1400 audit(1553284353.625:83): apparmor="DENIED" operation="signal" profile="dovecot" pid=414 comm="dovecot" requested_mask="send" denied_mask="send" signal=term peer="/usr/lib/dovecot/imap-login"
        Mar 22 15:52:33 smtp kernel: [65542.197635] audit: type=1400 audit(1553284353.625:84): apparmor="DENIED" operation="signal" profile="dovecot" pid=414 comm="dovecot" requested_mask="send" denied_mask="send" signal=term peer="/usr/lib/dovecot/config"
        Mar 22 15:52:36 smtp dovecot: imap(simon): Server shutting down. in=17882 out=104004
        ```
    
    The server was heavily loaded which is probably why it ended up trying to SIGTERM those.
    Signed-off-by: Simon Deziel's avatarSimon Deziel <simon@sdeziel.info>
    (cherry picked from commit f01fd38c)
    Signed-off-by: 's avatarJohn Johansen <john.johansen@canonical.com>
    6377b1c4
Name
Last commit
Last update
binutils Loading commit data...
changehat Loading commit data...
common Loading commit data...
deprecated Loading commit data...
documentation Loading commit data...
kernel-patches Loading commit data...
libraries/libapparmor Loading commit data...
parser Loading commit data...
presentations Loading commit data...
profiles Loading commit data...
tests Loading commit data...
utils Loading commit data...
.gitignore Loading commit data...
LICENSE Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...