User Tools

Site Tools


runlevels

Table of Contents

If you want to send us your comments, please do so. Thanks
More on comments


Runlevels

Show runlevel

/sbin/runlevel

Systemd

Systemd replaces the startup sequences and runlevels controlled by the traditional init daemon

Runlevels are called targets in systemd

Classic runlevelSystemd targetRemark
0poweroff.target
1rescue.targetSingle user
2multi-user.targetNo window manager
3multi-user.targetNo window manager
4multi-user.targetNo window manager
5graphical.target
6reboot.target
default.target
runlevel0.targetsymbolic link to poweroff.target
runlevel1.targetsymbolic link to rescue.target
runlevel3.targetsymbolic link to multi-user.target
runlevel5.targetsymbolic link to graphical.target
runlevel6.targetsymbolic link to reboot.target

Commands

TaskCommandRemark
Show the current runlevelsystemctl list-units --type=target
Change the current runlevel to an other onesystemctl isolate [target name].target
Change the default runlevel on next-bootln -sf /usr/lib/systemd/system/[target name].target /etc/systemd/system/[target name].target
Change the default runlevel on next-bootsystemctl set-default [target name].target
  1. cd /lib/systemd/system
  2. ls -l default.target
    • lrwxrwxrwx 1 root root 16 Jan 29 18:07 default.target → graphical.target
  3. cp default.target default.target.org
  4. rm default.target
    • rm: remove symbolic link 'default.target'?
  5. y
  6. ln -s multi-user.target default.target
  7. *8ll default.target**
    1. lrwxrwxrwx 1 root root 17 Feb 29 08:25 default.target → multi-user.target

Wikipedia on Runlevels
Linux Standard Base Core Specification 4.1 onrunlevels
Debian on runLevels
Debian on system initialization
Understanding and changing runlevels in systemd


Main subjects on this wiki: Linux, Debian, HTML, Microcontrollers, Privacy

RSS
Disclaimer
Privacy statement
Bugs statement
Cookies
Copyright © : 2014 - 2024 Webevaluation.nl and the authors
Changes reserved.

This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
runlevels.txt · Last modified: 14-06-2020 19:11 by wim