From the course: Learning Debian Linux

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Managing services

Managing services - Linux Tutorial

From the course: Learning Debian Linux

Start my 1-month free trial

Managing services

- [Instructor] Services are programs or software that run in the background and wait to be called for some purpose. Debian uses systemd to manage the systems startup and services that the system runs. Systemd uses unit files to define how services are controlled and what specifically they do when they're called. Unit files are filed in the /etc/systemd directory and user and system modifications can be put in the user and systems subdirectories there. We can see all of the units by typing systemctl. Here I can scroll up and down with the arrows, and when I'm done I can press q. We can narrow down this list to only the services with systemctl -t service. This display shows what unit file is responsible for a service and its state. We can see if the unit file has been loaded, whether it's active, and its sub state, things like whether it's waiting, active, failed, and so on. We can also drill down on a particular service…

Contents