Re: systemd: how to get current target

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Qua, 2014-12-24 at 08:14 -0600, Glenn Holmer 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@shoggoth ~]# systemctl get-default
> graphical.target
> [root@shoggoth ~]# who -r
>          run-level 5  2014-12-24 07:49
> [root@shoggoth ~]# systemctl isolate multi-user
> [root@shoggoth ~]# systemctl get-default
> graphical.target
> [root@shoggoth ~]# who -r
>          run-level 3  2014-12-24 08:12                   last=5
> [root@shoggoth ~]# systemctl default
> [root@shoggoth ~]# systemctl get-default
> graphical.target
> [root@shoggoth ~]# who -r
>          run-level 5  2014-12-24 08:12                   last=3
> [root@shoggoth ~]#
> 
> What's the correct command?

cd /etc/systemd/system
ll default.target
lrwxrwxrwx 1 root root 36 Dez 24 15:07 default.target
-> /lib/systemd/system/graphical.target

To change I used :

ln -s /lib/systemd/system/graphical.target default.target -f

ll /lib/systemd/system/*target

-- 
Sérgio M. B.

_______________________________________________
kde mailing list
kde@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/kde
New to KDE4? - get help from http://userbase.kde.org




[Index of Archives]     [KDE Users]     [Fedora General Discussion]     [Older Fedora Users Mail]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Triage]     [Coolkey]     [Yum Users]     [Yosemite Forum]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

  Powered by Linux