Skip to main content
Topic: shutdown doesn't work!? (Read 916 times) previous topic - next topic
0 Members and 5 Guests are viewing this topic.

shutdown doesn't work!?

whenever i try to shutdown my computer (either clicking the xfce4 button to shutdown or typing shutdown/poweroff command), it hangs forever at this point:



so i'm forced to shutdown by mantaining the power button

the only way i've found, is using 'shutdown -h', which looks like it works, but is inconvenient


(sorry for crossposting, i don¡t know if its not allowed, but no one answered in 24 hours and i dont even know if it belongs to init systems topic). and also, why i cant undo the contents of post? ironicly, i had to rewrite the contents of this post the third time

Re: shutdown doesn't work!?

Reply #1
You shouldn't repost really. The previous thread was probably in the perfect place. But it's not the end of the world.

I saw it but didn't reply as I know very little about S6. Sometimes you need to be patient for someone who uses S6 to see the thread and hopefully reply. In the meantime you could try and gather more info such as logs etc.
You should try to provide more info i.e. has this just started after an upgrade or is it a new install ? etc. etc.
The more info you provide the more likely someone will be able to help.


Re: shutdown doesn't work!?

Reply #2
The S6 init was the correct place for this issue.

The presented information appears to be lacking any useful information to troubleshoot with.
Do provide logs, the actual methods used to create the S6 compiled init and any other things noticed.

I do believe that the S6 users in Artix is a minority.
My knowledge of S6 is very limited.
Those with S6 experience may not have the time to guess at the issue.
By providing enough troubleshooting information regarding your setup on your hardware makes those knowledgeable users with limited time more inclined to offer solutions.


Re: shutdown doesn't work!?

Reply #3
You should try to provide more info i.e. has this just started after an upgrade or is it a new install ? etc. etc.
the problem is occuring in a very fresh install, that is not older than a week. and also it is happening in another computer with the same install, so it's not my hardware problem i guess

i don't really know how to troubleshoot, since it's happening at the shutdown. if you give me indications on how to, i will do it

i'm using in a install from artix-cinnamon-s6-20220713-x86_64.iso

Re: shutdown doesn't work!?

Reply #4
hi there, i know absolutely nothing about s6 but i found this that might be of some use, there is a line in it that says ". If no -h, -p, -H or -H option was specified, it sends a special 'S' shutdown request, that only makes s6-linux-init-shutdownd execute the shutdown script, but not actually shut down the machine" and that might explain why you have to use the switch (-h) to shut it down.   Here's the link from gentoo::
https://wiki.gentoo.org/wiki/S6-linux-init_(package)#shutdown

just be aware there is also a typo i think in some places, where "shutdownd" in places misses the "h".

Re: shutdown doesn't work!?

Reply #5
You should be able to log into tty7, as it's the first one to come up and it only comes down at the very end. /run/uncaught-logs should then have the relevant logs, which you can copy to disk.

Quote
hi there, i know absolutely nothing about s6 but i found this that might be of some use, there is a line in it that says ". If no -h, -p, -H or -H option was specified, it sends a special 'S' shutdown request, that only makes s6-linux-init-shutdownd execute the shutdown script, but not actually shut down the machine" and that might explain why you have to use the switch (-h) to shut it down.   Here's the link from gentoo::

That's outdated, s6's shutdown now errors out when you don't give any of these options. If @dark7void's doesn't, I'd ask him to run pacman -Syu s6-linux-init; might just be a Calamares-induced partial upgrade.

Re: shutdown doesn't work!?

Reply #6
update: it sometimes works, it sometimes doesn't (more it doesn't than it does), so i can't even troubleshoot it because when i try, it works

Re: shutdown doesn't work!?

Reply #7
Possibly a service you have running is hanging forever trying to shutdown? You could try manually bringing down various s6 services before shutting down and seeing if that works.

Re: shutdown doesn't work!?

Reply #8
I posted the proper commands to use with s6 + elogind in the s6 sub-forum before I saw this was more active, https://forum.artixlinux.org/index.php/topic,5044.msg32547.html#msg32547

I don't use xfce4 power manager and I'm not sure what it's trying to do in the background, so I won't be much help there. Those are at least the most common commands for you to test though.

Re: shutdown doesn't work!?

Reply #9
Sorry to bump this after one year, but it seems it was never fully answered and it's a top hit on searches. I was getting a dirty filesystem after every reboot (using a plain "reboot" command), so I looked into this.

When using S6, /usr/bin/shutdown actually runs s6-linux-init-shutdown. Here's the man page for that:

  https://www.skarnet.org/software/s6-linux-init/s6-linux-init-shutdown.html

So the equivalent to a good old "shutdown now -h" is actually "shutdown -p now". I'm running inside QEMU, and it now works as expected (I get a clean filesystem). To reboot, "shutdown -r now" works as well.