From Fedora Project Wiki
(debug-shell is now packaged in systemd) |
m (Fixed typo) |
||
Line 3: | Line 3: | ||
In case of boot-time problems with systemd, it is useful to have a root shell available for debugging. | In case of boot-time problems with systemd, it is useful to have a root shell available for debugging. | ||
{{admon/warning|This debug shell requires no | {{admon/warning|This debug shell requires no authentication and provides root privileges to anyone who has physical access to the machine. Turn in it on only as needed and disable afterwards.}} | ||
* Enable using <code>systemctl enable debug-shell</code> | * Enable using <code>systemctl enable debug-shell</code> |
Revision as of 09:45, 10 February 2016
Setting up an early debug shell
In case of boot-time problems with systemd, it is useful to have a root shell available for debugging.
- Enable using
systemctl enable debug-shell
- Next time when booting, you will be able to switch to tty9 using CTRL+ALT+F9 and have a root shell there available from an early point in the booting process.
You can use the shell for checking the status of services, reading logs, looking for stuck jobs with systemctl list-jobs
, etc.
- When done, disable with
systemctl disable debug-shell
.