[sles-beta] changing default runlevel with systemctl command

Vincent Moutoussamy vmoutoussamy at suse.com
Fri Aug 14 05:09:03 MDT 2015


Hi,

> On 14 Aug 2015, at 12:18, Andreas Jaeger <aj at suse.com> wrote:
> 
> On 08/14/2015 11:22 AM, Gerd Pokorra wrote:
>> The command 'systemctl set-default multi-user.target' returns without a
>> message to the prompt, but the file link target
>> of /usr/lib/systemd/system/default.target will not change from
>> graphical.target to multi-user.target.
>> 
>> Should I open a service request for this issue?
>> 
>> # systemctl set-default multi-user.target
>> # ls -l /usr/lib/systemd/system/default.target
>> lrwxrwxrwx 1 root root 16 10. Aug
>> 20:03 /usr/lib/systemd/system/default.target -> graphical.target
> 
> Run "systemd-delta" to see how your system is different from the freshly installed system.
> 
> You're also looking at the wrong place, /usr/lib/systemd is read-only, changes are done in /etc/systemd to override /usr/lib/systemd.

To say it differently : 
 "/usr/lib/systemd/system/“ is the default configuration at the distribution level, and /etc/systemd/system/ is the configuration for your system.
Thus configuration in /etc/systemd/system/ prevails over "/usr/lib/systemd/system/“.

This setup (/usr/lib/systemd and /etc/systemd/) allow us to have useful command line like systemd-delta 

Snippet of systemd-delta man page :
systemd-delta may be used to identify and compare configuration files that override other configuration files. Files in /etc have highest priority, files in
       /run have the second highest priority, ..., files in /lib have lowest priority.

Regards,

PS : It is easier to use “# systemctl get-default” than  “# ls -l".

-- 
Vincent Moutoussamy
SUSE Beta Program and SDK Project Manager


More information about the sles-beta mailing list