telinit
Change SysV runlevel. Since the concept SysV runlevels is obsolete the runlevel requests will be transparently translated into systemd unit activation requests. More information: <https://manned.org/telinit>.
Install
- All systems
-
curl cmd.cat/telinit.sh
- Debian
-
apt-get install sysvinit
- Ubuntu
-
apt-get install upstart-sysv
- Arch Linux
-
pacman -S systemd-sysvcompat
- Kali Linux
-
apt-get install sysvinit-core
- CentOS
-
yum install systemd
- Fedora
-
dnf install systemd
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install upstart-sysv
- Raspbian
-
apt-get install upstart
- Dockerfile
- dockerfile.run/telinit
Change SysV runlevel. Since the concept SysV runlevels is obsolete the runlevel requests will be transparently translated into systemd unit activation requests. More information: <https://manned.org/telinit>.
-
Power off the machine:
telinit 0
-
Reboot the machine:
telinit 6
-
Change SysV run level:
telinit 2|3|4|5
-
Change to rescue mode:
telinit 1
-
Reload daemon configuration:
telinit q
-
Do not send a wall message before reboot/power-off (6/0):
telinit --no-wall value
© tl;dr; authors and contributors