<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - systemctl [reboot|shutdown] wronly believes root is still logged in on a tty"
href="https://bugs.freedesktop.org/show_bug.cgi?id=62676">62676</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>systemctl [reboot|shutdown] wronly believes root is still logged in on a tty
</td>
</tr>
<tr>
<th>QA Contact</th>
<td>systemd-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Severity</th>
<td>major
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux (All)
</td>
</tr>
<tr>
<th>Reporter</th>
<td>peter.weber@ttyhoney.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Component</th>
<td>general
</td>
</tr>
<tr>
<th>Product</th>
<td>systemd
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=76945" name="attach_76945" title="logind.conf with HandleLidSwitch=ignore (GNOME dconf is buggy and can't do this)">attachment 76945</a> <a href="attachment.cgi?id=76945&action=edit" title="logind.conf with HandleLidSwitch=ignore (GNOME dconf is buggy and can't do this)">[details]</a></span>
logind.conf with HandleLidSwitch=ignore (GNOME dconf is buggy and can't do
this)
Hello!
I'm using Systemd-198 on Archlinux. Today I've upgraded various packages on my
box, including Systemd. Sadly it looks like, if "root" has logged in and *out*
in on one off the tty's this prevents executing successfully "sytemctl reboot"
or "sytemctl poweroff".
Example:
$ systemctl reboot # return-code 1
User root is logged in on tty4.
User root is logged in on tty4.
Please retry operation after closing inhibitors and logging out other users.
Alternatively, ignore inhibitors and users with 'systemctl reboot -i'.
In fact I logged in as root two times on tty4 and logged out, every time. But
Systemd seems to believe this sessions still last.
$ loginctl # this is just me regular user (tty2, tty3, gnome-terminal)
SESSION UID USER SEAT
2 1000 peter seat0
3 1000 peter seat0
6 1000 peter seat0
3 sessions listed.
$ systemd-inhibit --list # looks normal to me
Who: root (UID 0, PID 299)
What: sleep
Why: inhibited
Mode: delay
Who: peter (UID 1000, PID 590)
What: sleep
Why: GNOME needs to lock the screen
Mode: delay
Who: peter (UID 1000, PID 590)
What: handle-power-key:handle-suspend-key:handle-hibernate-key
Why: GNOME handling keypresses
Mode: block
3 inhibitors listed.
Steps to reproduce:
1. power on system
2. login as regular user on a tty
3. login as root on a tty
4. logout as root
5. execute "sytemctl reboot"
6. fails with message from above
Further resources (I'm not involved):
<a href="https://bbs.archlinux.de/viewtopic.php?id=23634">https://bbs.archlinux.de/viewtopic.php?id=23634</a> # german, warning -> the get
confused during discussion (e.g. sudo, mix old "poweroff" with "systemctl
poweroff")
<a href="http://www.mail-archive.com/arch-general@archlinux.org/msg32977.html">http://www.mail-archive.com/arch-general@archlinux.org/msg32977.html</a> # english
(but server seem to be buggy, at time of writing)
Bug maybe related with this new feature?
<span class="quote">> Inhibitors are now honored and listed by "systemctl
> suspend", "systemctl poweroff" (and similar) too, not only
> GNOME. These commands will also list active sessions by
> other users.</span >
Thank you</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>