During the latest shutdown:
May 29 01:55:05 qaa systemd[1]: Stopping session-2.scope - Session 2 of User vinc17...
[...]
May 29 01:55:26 qaa systemd[1]: session-2.scope: Stopping timed out. Killing. May 29 01:55:26 qaa systemd[1]: session-2.scope: Killing process 2990 (mutt) with signal SIGKILL.
May 29 01:55:26 qaa systemd[1]: session-2.scope: Failed with result 'timeout'.
May 29 01:55:26 qaa systemd[1]: Stopped session-2.scope - Session 2 of User vinc17.
May 29 01:55:26 qaa systemd[1]: session-2.scope: Consumed 8h 17min 54.832s CPU time.
May 29 01:55:26 qaa systemd[1]: Stopping systemd-logind.service - User Login Management...
May 29 01:55:26 qaa systemd[1]: Stopping user@1000.service - User Manager for UID 1000...
[...]
Note: I had set DefaultTimeoutStopSec=20s because then is normally sufficient.
The mutt process was running in GNU Screen. The current mailbox
was just a local one. Mutt does no network connections (I do not
use IMAP). I general, I quit it before logging out, but this time,
it seems that I forgot.
But I don't understand why there was a timeout. Does this mean that
mutt didn't react to SIGTERM? Any reason?
On 2024-05-29, Vincent Lefevre <vincent@vinc17.net> wrote:
During the latest shutdown:
May 29 01:55:05 qaa systemd[1]: Stopping session-2.scope - Session 2 of User vinc17...
[...]
May 29 01:55:26 qaa systemd[1]: session-2.scope: Stopping timed out. Killing.
May 29 01:55:26 qaa systemd[1]: session-2.scope: Killing process 2990 (mutt) with signal SIGKILL.
May 29 01:55:26 qaa systemd[1]: session-2.scope: Failed with result 'timeout'.
May 29 01:55:26 qaa systemd[1]: Stopped session-2.scope - Session 2 of User vinc17.
May 29 01:55:26 qaa systemd[1]: session-2.scope: Consumed 8h 17min 54.832s CPU time.
May 29 01:55:26 qaa systemd[1]: Stopping systemd-logind.service - User Login Management...
May 29 01:55:26 qaa systemd[1]: Stopping user@1000.service - User Manager for UID 1000...
[...]
Note: I had set DefaultTimeoutStopSec=20s because then is normally sufficient.
The mutt process was running in GNU Screen. The current mailbox
was just a local one. Mutt does no network connections (I do not
use IMAP). I general, I quit it before logging out, but this time,
it seems that I forgot.
But I don't understand why there was a timeout. Does this mean that
mutt didn't react to SIGTERM? Any reason?
sudo journalctl -b-1?
On 29/05/2024 07:44, Vincent Lefevre wrote:
But I don't understand why there was a timeout. Does this mean that
mutt didn't react to SIGTERM? Any reason?
Have you tried to send SIGTERM to mutt?
If it ignores this signal or the reaction is some prompt then you
need to find another way to stop mutt and to configure systemd user
session to do it on logout (shutdown).
Do you mean that mutt properly exits unless it receives SIGTERM in the
course of shutdown process?
I would try to enable debug log in mutt. There is a chance that
networking is already disabled (or some other system unit important
for mutt is already stopped) when systemd tries to kill mutt first
time.
On 2024-05-31 10:02:57 +0700, Max Nikulin wrote:
Do you mean that mutt properly exits unless it receives SIGTERM in the course of shutdown process?
I think that this was not the first time I did a shutdown while Mutt
was still running. But this was the first time it did not exit.
Do you see an attempt to send SIGTERM to mutt before timeout and SIGKILL?
What other processes survived first step? Are there something suspicious before SIGKILL stage?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (0 / 16) |
Uptime: | 164:11:18 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,517 |