You are not logged in.

#1 2026-04-06 05:28:03

GhostOverFlow256
Member
Registered: 2023-07-16
Posts: 8

"sudo reboot now" no longer working due to systemd-inhibit

Upon attempting to run something like `sudo reboot now`, it complains:
```
Operation inhibited by "<user>" (PID 2663 "gnome-session-s", user <user>), reason is "user session inhibited".
User <user> is logged in on seat0.
Please retry operation after closing inhibitors and logging out other users.
'systemd-inhibit' can be used to list active inhibitors.
Alternatively, ignore inhibitors and users with 'systemctl reboot -i'.
```
This also happens if there is an ssh session open to the computer.
How can I make reboot behave like it does on every other distribution? (E.g. if i run `sudo reboot now` on a multi-user debian system, it force logs everyone else out, and immediately shuts down) I'm aware I could alias `sudo reboot now` to `systemctl reboot -i`, but that seems like a workaround rather than a fix...

Offline

#2 2026-04-06 08:00:55

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 74,254

Re: "sudo reboot now" no longer working due to systemd-inhibit

"Don't use gnome"

It's inhibiting the reboot, systemd adheres to that inhibition unless you tell it to do not.
https://systemd.io/INHIBITOR_LOCKS/

systemd-inhibit --list

There's really nothing special *arch* would do here - the list is empty here and I can juts reboot w/o any further notice.

Offline

Board footer

Powered by FluxBB