When I reboot my computer, systemd waits for its default 90 seconds for scdaemon to shut down but eventually it kills it afterwards.
I have gpg-agent running but I don't have any smart card (including Yubikey) inserted into my computer.
Logs from systemd:
systemd[1]: session-1.scope: Stopping timed out. Killing. systemd[1]: session-1.scope: Killing process 2209 (scdaemon) with signal SIGKILL. systemd[1]: session-1.scope: Killing process 2336 (libusb_event) with signal SIGKILL. systemd[1]: session-1.scope: Killing process 2344 (n/a) with signal SIGKILL. systemd[1]: session-1.scope: Failed with result 'timeout'.
systemd[1]: session-1.scope: Stopping timed out. Killing. systemd[1]: session-1.scope: Killing process 2023 (scdaemon) with signal SIGKILL. systemd[1]: session-1.scope: Killing process 2024 (pipe-connection) with signal SIGKILL. systemd[1]: session-1.scope: Killing process 2230 (libusb_event) with signal SIGKILL. systemd[1]: session-1.scope: Failed with result 'timeout'.
systemd[1]: session-1.scope: Stopping timed out. Killing. systemd[1]: session-1.scope: Killing process 2058 (scdaemon) with signal SIGKILL. systemd[1]: session-1.scope: Killing process 2258 (libusb_event) with signal SIGKILL. systemd[1]: session-1.scope: Killing process 2262 (conn fd=12) with signal SIGKILL. systemd[1]: session-1.scope: Failed with result 'timeout'.
systemd[1]: session-1.scope: Stopping timed out. Killing. systemd[1]: session-1.scope: Killing process 12979 (scdaemon) with signal SIGKILL. systemd[1]: session-1.scope: Killing process 12980 (pipe-connection) with signal SIGKILL. systemd[1]: session-1.scope: Killing process 13163 (n/a) with signal SIGKILL. systemd[1]: session-1.scope: Failed with result 'timeout'.
When I disabled it in gpg-agent.conf and restarted the agent, the system could reboot immediately.
OS: openSUSE Linux 5.17.1
GPG version: 2.3.4