This document is a WORK IN PROGRESS.
This is just a quick personal cheat sheet: treat its contents with caution!
init systems¶
An init system is the first program, other than the kernel, to be run after a Linux distribution is booted. It is a daemon process that continues running until the system is shut down. Init is the direct or indirect ancestor of all other processes, and automatically adopts all orphaned processes. It is started by the kernel using a hard-coded filename; if the kernel is unable to start it, panic will result. Init is typically assigned PID 1.
Reference(s)
Table of contents¶
rc¶
rc is an ancient abbreviation that stands for "run commands". It refers to a script (or a set of scripts) containing "startup instructions for an application program (or an entire operating system)". It would seem rc was the basis for modern init systems.
Popular init systems¶
A lot of init systems are available. Here are maybe the four most popular:
Quick equivalents¶
Basic service related commands¶
- Start the
service_name
service:
- Stop the
service_name
service:
- Restart the
service_name
service:
- Reload the
service_name
service:
- Check the
service_name
service status:
- Enable the
service_name
service on system boot:
- Disable the
service_name
service on system boot:
- Check if the
service_name
service is enable or disable on system boot:
System commands¶
TODO/TO CHECK
- Halt the system:
- Power off the system:
- Reboot the system:
-
Suspend the system: TODO
-
Hibernate the system: TODO
-
Print system logs: TODO
If this cheat sheet has been useful to you, then please consider leaving a star here.