systemd: how to get current target
Glenn Holmer
shadowm at lyonlabs.org
Wed Dec 24 14:14:57 UTC 2014
This page:
https://fedoraproject.org/wiki/Systemd#How_do_I_know_the_current_target.3F
says to use "systemctl get-default", but that's clearly wrong:
[root at shoggoth ~]# systemctl get-default
graphical.target
[root at shoggoth ~]# who -r
run-level 5 2014-12-24 07:49
[root at shoggoth ~]# systemctl isolate multi-user
[root at shoggoth ~]# systemctl get-default
graphical.target
[root at shoggoth ~]# who -r
run-level 3 2014-12-24 08:12 last=5
[root at shoggoth ~]# systemctl default
[root at shoggoth ~]# systemctl get-default
graphical.target
[root at shoggoth ~]# who -r
run-level 5 2014-12-24 08:12 last=3
[root at shoggoth ~]#
What's the correct command?
--
Glenn Holmer (Linux registered user #16682)
"After the vintage season came the aftermath -- and Cenbe."
More information about the kde
mailing list