You are not logged in.

#1 2013-06-04 13:01:50

Ypnose
Member
From: Jailed in the shell
Registered: 2011-04-21
Posts: 353
Website

[systemd]Add delay before shutdown

Hi,
Since 3.9.x kernels, sometimes when I turn off my computer, I can see two lines about ETX4 fs (they're the last lines), just before the computer shuts down.
journalctl doesn't show those lines.
My messages aren't related to this "bug": https://bbs.archlinux.org/viewtopic.php?id=162905
I would like to see what the lines said, but it's too fast. I tried to debug as described in this link: http://www.freedesktop.org/wiki/Softwar … /#index3h2 but it didn't work.

Could you tell me how can I add a little delay?

Last edited by Ypnose (2013-06-04 13:02:34)


Github -- My terminal font Envypn

Offline

#2 2013-06-04 13:52:04

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [systemd]Add delay before shutdown

Have you tried using halt instead of poweroff / reboot and pausing the output with Ctrl-s? You can unpause with Ctrl-q (to pause it immediately again so you can view another screenfull).
You have to have fast fingers and I'm not sure if it works if you have 'stty -ixon' in your .bashrc as it disables the interrupt data flow function of Ctrl-s command.

Offline

#3 2013-06-05 12:09:39

Ypnose
Member
From: Jailed in the shell
Registered: 2011-04-21
Posts: 353
Website

Re: [systemd]Add delay before shutdown

I didn't know those shortcuts. Indeed, I'll have to be very fast.
Thank you. I will report back what I find.


Github -- My terminal font Envypn

Offline

#4 2013-06-12 16:03:01

Ypnose
Member
From: Jailed in the shell
Registered: 2011-04-21
Posts: 353
Website

Re: [systemd]Add delay before shutdown

Hum, I had the warnings again (three times) and I was unable to stop the shutdown. It goes too fast.
Any ideas?


Github -- My terminal font Envypn

Offline

#5 2013-06-13 07:48:12

rtoijala
Member
Registered: 2011-09-11
Posts: 36

Re: [systemd]Add delay before shutdown

Just use halt instead of poweroff.
Then you can write down / take a photo of the warnings.
Then reboot manually with the power switch.

Offline

#6 2013-06-13 09:29:42

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [systemd]Add delay before shutdown

rtoijala wrote:

Just use halt instead of poweroff.
Then you can write down / take a photo of the warnings.
Then reboot manually with the power switch.

Unless there are too many of them and they scroll by.


@Ypnose
You can fiddle with 'quiet' setting and its friends to pick the loglevel that displays the warnings you're looking for but less other info.

Try creating a shutdown log: http://freedesktop.org/wiki/Software/sy … /#index2h1

Offline

#7 2013-06-13 15:48:54

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: [systemd]Add delay before shutdown

add "ash" to /run/initramfs/shutdown, just before poweroff/reboot commands. (you need shutdown hook on mkinitcpio).

Offline

#8 2013-06-13 20:01:27

Ypnose
Member
From: Jailed in the shell
Registered: 2011-04-21
Posts: 353
Website

Re: [systemd]Add delay before shutdown

Thank you guys. If I have another warnings, I'll try what you suggested me.


Github -- My terminal font Envypn

Offline

Board footer

Powered by FluxBB