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 8,136 times
6
Håvard Pettersen
- 329
- 4
- 17
-
I didn't try it out but maybe setting [DefaultTimeoutStopSec](http://manpages.ubuntu.com/manpages/utopic/man5/systemd-system.conf.5.html) in `/etc/systemd/system.conf` can solve this? – Dimitri Podborski Jan 11 '16 at 19:48
-
Worked!! Post as answer to get reward – Håvard Pettersen Jan 11 '16 at 19:59
1 Answers
10
As I already mentioned in comments, setting DefaultTimeoutStopSec in /etc/systemd/system.conf should solve this problem.
Dimitri Podborski
- 2,505
- 16
- 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. – Resigned June 2023 Jan 09 '23 at 02:17