Is it possible to make ubuntu shutdown right away instead of counting to 1.30min then shutdown. PS: It is a script that is running that gives the message.
Asked
Active
Viewed 9,629 times
1 Answers
11
As I already mentioned in comments, setting DefaultTimeoutStopSec in /etc/systemd/system.conf should solve this problem.
Dimitri Podborski
- 2,715
- 18
- 22
-
-
1This is a workaround, A solution would be to figure out why systemd can't stop whatever it needs, and fix it. Apparently, it has been years, and no one is interested, so mean while users just tell systemd to go kill itself after 10 seconds. – mikewhatever Mar 28 '19 at 18:26
-
Is there no keyboard shortcut that can be used on a one-off basis to bypass the offending job during shutdown? While adjusting configuration files is great, it doesn't help with the immediate problem of a spurious 90-second (or longer, depending on configuration) delay, not to mention that changing config files is irrelevant for cases like recovery filesystems that do not persist changes. – Jan 09 '23 at 02:17
-
You can actually use keyboard shortcuts to bypass the problem... sorta. You can use sysrq, here's a guide, it's for manjaro but works the same on ubuntu. https://forum.manjaro.org/t/howto-reboot-turn-off-your-frozen-computer-reisub-reisuo/3855 – Cestarian Jan 12 '24 at 14:30
/etc/systemd/system.confcan solve this? – Dimitri Podborski Jan 11 '16 at 19:48