what makes me wonder for a longer time is that stop dbmail-imapd takes way too long and to prevent that be problematic i told systemd if it is not down 5 seconds after SIGTERM to send a SIGKILL
that below is my home-machine, i am the only user, so unlikely high connection
load and typically that happens only after the daemon was running a longer time
below:
* systemd-unit
* /var/log/messages due stop service
* a strace to the main PID while stop service
______________________________________________
[root@srv-rhsoft:~]$ cat /usr/lib/systemd/system/dbmail-imapd.service
[Unit]
Description=DBMail IMAP Server
After=network.service systemd-networkd.service mysqld.service
mysqld-dbmail.service
Before=dovecot.service
[Service]
Type=simple
ExecStart=/usr/sbin/dbmail-imapd -D
Restart=always
RestartSec=1
TimeoutStopSec=5
LimitNOFILE=50000
PrivateTmp=true
______________________________________________
Mar 24 19:30:31 srv-rhsoft systemd[1]: Stopping DBMail IMAP Server...
Mar 24 19:30:36 srv-rhsoft systemd[1]: dbmail-imapd.service stopping timed out.
Killing.
Mar 24 19:30:36 srv-rhsoft systemd[1]: dbmail-imapd.service: main process
exited, code=killed, status=9/KILL
Mar 24 19:30:36 srv-rhsoft systemd[1]: Stopped DBMail IMAP Server.
Mar 24 19:30:36 srv-rhsoft systemd[1]: Unit dbmail-imapd.service entered failed
state.
______________________________________________
[root@srv-rhsoft:~]$ cat strace.txt
Process 21266 attached
epoll_wait(8, 7fba1ccc3300, 32, 20180) = -1 EINTR (Interrupted system call)
--- SIGTERM {si_signo=SIGTERM, si_code=SI_USER, si_pid=1, si_uid=0} ---
sendto(9, "\17", 1, 0, NULL, 0) = 1
rt_sigreturn() = -1 EINTR (Interrupted system call)
epoll_wait(8, {{EPOLLIN, {u32=10, u64=10}}}, 32, 11210) = 1
recvfrom(10, "\17", 1024, 0, NULL, NULL) = 1
recvfrom(10, 0x7fba21cff4a0, 1024, 0, 0, 0) = -1 EAGAIN (Resource temporarily
unavailable)
close(13) = 0
munmap(0x7fba237dd000, 4096) = 0
unlink("/run/dbmail/dbmail-imapd.pid") = 0
write(29, "\1\0\0\0\1", 5) = 5
shutdown(29, SHUT_RDWR) = 0
close(29) = 0
write(7, "\1\0\0\0\1", 5) = 5
shutdown(7, SHUT_RDWR) = 0
close(7) = 0
write(6, "\1\0\0\0\1", 5) = 5
shutdown(6, SHUT_RDWR) = 0
close(6) = 0
write(17, "\1\0\0\0\1", 5) = 5
shutdown(17, SHUT_RDWR) = 0
close(17) = 0
write(3, "\1\0\0\0\1", 5) = 5
shutdown(3, SHUT_RDWR) = 0
close(3) = 0
futex(0x7fba1ed24124, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 1,
{1395685836, 866124000}, ffffffff
<unfinished ...>
+++ killed by SIGKILL +++
signature.asc
Description: OpenPGP digital signature
_______________________________________________ DBmail mailing list [email protected] http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
