Skip to main content
Topic: Unable to shutdown (with shutdown command, not power button) (Read 257 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Unable to shutdown (with shutdown command, not power button)

I was unable to shutdown with
Code: [Select]
shutdown now
. Nothing happens after a while when it attempted to shutdown (The system isn't freezed or anything, prompt still works)

I cycled through my tty and tty7 still responding, although it told me that the system is shutting down.

I managed to dump some logs with dmesg:
pastebin here

and shutdown just tells me this:
Code: [Select]
runsvchdir: single: current.
Seems like normal stuff.


Anyone has clues?

and I just noticed dmesg doesn't help that much, here is a photo of tty0
You shouldn't listen to my advice anyways

Re: Unable to shutdown (with shutdown command, not power button)

Reply #1
Does runit even have shutdown command like this? I thought it can only work via poweroff or runit-init 0

Re: Unable to shutdown (with shutdown command, not power button)

Reply #2
interesting... Now I will need to find where the heck this executable comes from.
You shouldn't listen to my advice anyways

Re: Unable to shutdown (with shutdown command, not power button)

Reply #3
Code: [Select]
pacman -F shutdown
system/mkinitcpio 27-3 [installed]
    usr/lib/initcpio/hooks/shutdown
    usr/lib/initcpio/install/shutdown
    usr/lib/initcpio/shutdown
system/openrc 0.42.1-13
    usr/bin/shutdown
    usr/lib/openrc/bin/shutdown
system/runit 2.1.2-19 [installed]
    usr/bin/shutdown
system/s6-linux-init 1.0.4.0-2
    etc/s6/current/bin/shutdown
    usr/bin/shutdown
archlinuxcn/systemd-sysvcompat-git 245.1099-1
    usr/bin/shutdown

It was installed with runit.
You shouldn't listen to my advice anyways

Re: Unable to shutdown (with shutdown command, not power button)

Reply #4
After some investigation, I suspect that runit isn't exiting stage 3 properly. Maybe one of the service file is to blamed.
You shouldn't listen to my advice anyways


Re: Unable to shutdown (with shutdown command, not power button)

Reply #6
Both these work too.

sudo halt
sudo reboot
i3-junkie