REISUB broken in Mageia 2?

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

REISUB broken in Mageia 2?

Postby Curmudgeon » Jul 12th, '12, 22:14

I recently tried to restart a Mageia system using the time-honored REISUB method (aka Magic SysRq keys).

I discovered that both Alt-SysReq-E and Alt-SysReq-I don't do what I've come to expect them to over many years of Linux use, that is, send TERM and KILL signals, respectively.

Rather, they both seem to restart the DM (complete with auto-login, if it's turned on), which would seem exactly counter to what these commands are traditionally supposed to do (that is, stop processes, not spawn/respawn them).

Is this a configuration issue? Or is this an "improvement"?
Curmudgeon
 
Posts: 2
Joined: Jul 12th, '12, 22:07

Re: REISUB broken in Mageia 2?

Postby tom_ » Jul 19th, '12, 14:16

as you can see here

http://www.kernel.org/doc/Documentation/sysrq.txt

'e' - Send a SIGTERM to all processes, except for init.
'i' - Send a SIGKILL to all processes, except for init.

both these command were killing all processes except init

however init has been substitued by systemd,
so this problem could be related systemd

reading here

https://bugzilla.redhat.com/show_bug.cgi?id=752593

seems that Alt-SysReq-S e Alt-SysReq-B are working fine,
I can't find anything about Alt-SysReq-E and Alt-SysReq-I with systemd :?
tom_
 
Posts: 423
Joined: Sep 3rd, '11, 12:26
Location: Porto Ercole, Italy

Re: REISUB broken in Mageia 2?

Postby Curmudgeon » Jul 20th, '12, 02:33

Thanks for the reply, and for confirming my suspicions.

Damn shame.
Curmudgeon
 
Posts: 2
Joined: Jul 12th, '12, 22:07

Re: REISUB broken in Mageia 2?

Postby fraterlinux » Jul 21st, '12, 17:07

Greetings to all!

I tested here exhaustively and all shortcuts work! But Alt-SysReq-I has a Bug.
Alt-SysReq-I : Send a SIGKILL to all processes in one task. Should I push until killing all tasks.
If you want to test, note how die desktops Ctrl +Alt + Fn, n of 1 up to 6.
In each desktop leave running top and see how processes die!

However, there really is a loop (bug) and the X is restarting every time I press I

See through top and report that noted...
Last edited by fraterlinux on Jul 21st, '12, 20:16, edited 1 time in total.
fraterlinux
 
Posts: 131
Joined: Jun 21st, '12, 13:15

Re: REISUB broken in Mageia 2?

Postby fraterlinux » Jul 21st, '12, 18:13

I reported the bug because it is broken into Mageia 2 a safe method to restart a linux.

https://bugs.mageia.org/show_bug.cgi?id=6842
fraterlinux
 
Posts: 131
Joined: Jun 21st, '12, 13:15

Re: REISUB broken in Mageia 2?

Postby fraterlinux » Jul 26th, '12, 03:51

Everything is working perfect with REISUB method:

Colin Guthrie 2012-07-25 17:52:13 CEST
This is expected behaviour. The DM is meant to restart after the binary dies.
Just typing killall X (or perhaps the containing DM) would exhibit the same
behaviour - i.e. it is nothing to do with the sysreq keys.

If you don't like this behaviour simply copy the prefdm.service systemd unit to
/etc/systemd/system/, edit it accordingly to disable the restart and run
"systemctl enable --force prefdm.service"
fraterlinux
 
Posts: 131
Joined: Jun 21st, '12, 13:15


Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron