Systemd (week 10) Flashcards
What is systemd?
Systemd is a system and service manager for linux (most common type)
what does systemd does on boot?
It starts as PID 1 and manages the services in userspace
What is a service(daemon)?
A service is a process that runs in the background without user input. Waits for events to occur and triggers something in response
What is a target?
group of services that are connected through dependencies and activate the required services to reach some sort of system state
What is the command to view current targets?
sudo systemctl list-units –type=target
How do you manage and control systemd?
systemctl
How do you get systemd to search for new or updated units?
systemctl daemon-reload
What’s the difference between masking a unit and disabling it?
Disable keeps the service from running on startup while masking will prevent the unit from starting at all
What’s the directory for custom service files?
/etc/systemd/system
What is the syntax of a servicefile?
[section]
directive=value
What directive runs a script in a unitfile?
ExecStart=dirpath
What are the common sections in a unit file?
[unit], [install], and a third depending on type ie [timer] for .timer or [service] for .service
What are the dependency directives?
requires(needs) and wants(option), can specify ‘after’ if run after a certain service
What is the advantage of using a package manager?
Installs packages with dependencies
How do you search for a package in archlinux
pacman -Ss