В Tue, 23 Apr 2013 18:05:52 +0200
Frederic Crozat пишет:
Le mardi 23 avril 2013 à 19:53 +0400, Andrey Borzenkov a écrit :
В Tue, 23 Apr 2013 15:55:25 +0200
Frederic Crozat пишет:
+ Inhibitors are now honored no only in GNOME.
Parse error, care to explain?
Not only (apparently, there was some issues with inhibitors not being
properly handled when not issued by GNOME, feel free to check git for
the complete details).
I do not see anything even remotely similar to this sentence either in
commit log or in NEWS, so could you at least point at commit that
implements it?
in NEWS from v198:
* 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.
Ah, thanks, this should then be this one
commit b37844d3d72af3afbcb801476cf07c085519f392
Author: Lennart Poettering
Date: Fri Jan 11 04:24:05 2013 +0100
systemctl: honour inhibitors when shutting down or entering sleep state
Basically, it just makes systemctl to refuse to execute command if
inhibitors are set. From the man page:
-i, --ignore-inhibitors
When system shutdown or a sleep state is requested, ignore inhibitor locks.
Applications can establish inhibitor locks to avoid that certain important operations
(such as CD burning or suchlike) are interrupted by system shutdown or a sleep state.
Any user may take these locks and privileged users may override these locks. If any
locks are taken, shutdown and sleep state requests will normally fail (regardless if
privileged or not) and a list of active locks is printed. However if
--ignore-inhibitors is specified the locks are ignored and not printed, and the
operation attempted anyway, possibly requiring additional privileges.
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org
To contact the owner, e-mail: opensuse-factory+owner@opensuse.org