Shutdown -now and reboot delays

What have you tried: running shutdown -now or reboot commands

What is the error: There is now a delay of few seconds before the command execution, which didn’t exist 1 or 2 months ago, execution was immediate

What device is this on: Laptop Acer Aspire 5, Linux kali 6.11.2-amd64

Your issue is unclear. Are you saying:

  1. Whenever you reboot or shutdown from the command line, you experience performance issues on your next session. Then, shutting down or rebooting by other means results in the machine behaving normally; or
  2. At one point in time you shut down or reboot using the command line, and now constantly suffer a performance issue you cannot resolve; or
  3. The issue is actually not related at all to rebooting the system, and you are just saying that rebooting the system is all you tried to do to resolve your performance issue?

The distinction is important. If it’s the first, I’m more likely to believe your interpretation of the situation. If it’s the second, there is likely a different issue you are not seeing. Possibly a configuration change or the installing of some sort of service that is now causing a problem, but whatever change didn’t take effect until you rebooted so you think it’s the command itself causing the problem.

If it is any of them, have you reviewed any logs on the system to see if there are any reported issues that explain the performance issue?

2 Likes

You’re right, I wasn’t very clear.

I’m always shutting down or rebooting with the command line shutdown now or reboot.

Until recently the execution of each command was instantaneous, now I’m noticing a delay of a few seconds.

Those are the only commands I have experienced this delay with. No other problem so far

1 Like

I checked with echo $(date) to a file and journalctl grepping shutdown. Delay shows 6 secs between both

1 Like

Then you have a daemon or process that is either not listening, or not finishing cleanly;

2 Likes

Thanks for the tip. Will look at it

1 Like