Location of Systemd service files

04.01.2023
20:37

Systemd services fall into two categories - system services run as superuser. To manage them, you must use sudo. The second category is user services, run as a specific user. This user can have full control without sudo.

File location

System service files can be found in

/usr/lib/systemd/system

/lib/systemd/system

/etc/systemd/system

Custom service files can be found in:

/usr/lib/systemd/user

/lib/systemd/user

/etc/systemd/user

$USER/.config/systemd/user

The service files that come with packages are usually found in /lib and /usr/lib, and /etc/ contains modified unit files that override the default settings.

15% discount on new VPS
Hurry up to order a server in any location
Choose a VPS

Other articles

04.01.2023
7 313
Knowledge base / Instructions - THE.Hosting
SSL Certificate: what it is and why it is needed
04.01.2023
8 398
Knowledge base / Instructions - THE.Hosting
Overview of ispmanager – VDS/VPS Control Panel on Linux
04.01.2023
5 885
Knowledge base / Instructions
How to install OpenLiteSpeed on Ubuntu 20.04