Linux Kernel Flashcards
What does the boot loader load into memory?
- both kernel and an initial RAM-based file system (initramfs)
- so that it can be used directly by kernel
What does the kernel do once it is loaded into the computers memory?
- initializes and configures the computers memory
- configures all hardware attached to the system
- this includes all processors, I/O subsystems, storage devices, etc
- also loads some necessary user space applications
What does the kernel do after setting up hardare and mounting the root filesystem?
- runs /sbin/init
- this becomes the initial process which starts other processes to get the system running
- most other processes trace their origin ultimately to init
What processes do not trace their origin ultimately to init?
- kernel processes
- these are started by the kernel directly
- their job is to manage internal OS details
For what is init responsible besides starting the system?
- keeping the system running
- shutting processes off cleanly
- act when necessary as a manager of all non-kernel processes
- cleans up after them after completion
- restarts user login / background system services
What is systemd?
- established uniform startup process across most distros
What are systemd features?
- aggressive parallelization techniques, permitting multiple services to start simultaneously
Simpler configuration files that enumerate: - what has to be done before a service is started
- how to execute service startup
- what conditions the service should indicate have been accomplished when startup is finished
How does systemd influence the init process?
- /sbin/init now points to /lib/systemd/systemd
- takes over the init process
What are example commands of systemd?
Starting, stopping, restarting a service on currently running system:
$ sudo systemctl start|stop|restart httpd.service
Enabling or disabling a system service from starting up at system boot:
$ sudo systemctl enable|disable httpd.service
Checking on the status of a service:
$ sudo systemctl status httpd.service