systemd: how to get current target

Dhaval Anjaria dhv2712 at gmail.com
Wed Dec 24 16:29:21 UTC 2014


ls -l /etc/systemd/default.target or something like that should suffice. Or
check journald for the last target loaded. That should also help..
On Dec 24, 2014 7:45 PM, "Glenn Holmer" <shadowm at lyonlabs.org> wrote:

> 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."
> _______________________________________________
> kde mailing list
> kde at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/kde
> New to KDE4? - get help from http://userbase.kde.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/kde/attachments/20141224/d4ceed04/attachment-0001.html>


More information about the kde mailing list