User avatar
piglet
Posts: 900
Joined: Sat Aug 27, 2011 1:16 pm

sudo reboot halts....for ages...what now?

Tue Feb 05, 2019 8:10 pm

Hi

I need to do a restart so I do "sudo reboot" on my Pi - but it just sits there saying:

[ OK ] Removed slice User Slice of pi
[ OK ] Stopping Permit User Sessions
[ OK ] Stopped triggerhappy global hotkey daemon
[ OK ] Stopped Login Service
[ OK ] Started Plymouth Reboot Screen
[ OK ] Stopped Permit User Sessions
[ OK ] Stopped Configure Bluetooth Modems connected by UART
[ OK ] Stopped MariaDB database server

It sits like that for ages then eventually reboots...

Any ideas what the problem is and how to fix it?

Andyroo
Posts: 3776
Joined: Sat Jun 16, 2018 12:49 am
Location: Lincs U.K.

Re: sudo reboot halts....for ages...what now?

Wed Feb 06, 2019 1:34 am

the command
sudo reboot
will wait 60 seconds to give you time to change your mind

if you do not want to wait then

Code: Select all

sudo reboot now
will end anything running and then reboot.
Need Pi spray - these things are breeding in my house...

User avatar
rpdom
Posts: 14746
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: sudo reboot halts....for ages...what now?

Wed Feb 06, 2019 9:12 am

Andyroo wrote:
Wed Feb 06, 2019 1:34 am
the command
sudo reboot
will wait 60 seconds to give you time to change your mind
sudo reboot has always been instant for me.

The shutdown command is the one that has the delay.

I suspect this is a different issue.

User avatar
piglet
Posts: 900
Joined: Sat Aug 27, 2011 1:16 pm

Re: sudo reboot halts....for ages...what now?

Wed Feb 06, 2019 11:08 pm

After an upgrade it now tells me what the "problem" is on restart:

[***] A stop job is running for Fail2Ban Service (2min 5s / 3min)

Perhaps related to : https://github.com/fail2ban/fail2ban/issues/1588

I have my pi exposed to the internet....it gets a LOT of attempts...

Return to “Troubleshooting”