Home » Notes » Where Systemd Service Files are Located

Where Systemd Service Files are Located

All Systemd services can be divided into two categories. The first category is system services which are started by a superuser. You have to log in as a root user or use the sudo utility to manage these services. The second category is the services which can be started from a specific by and this user has full control over them without sudo.

You can find files for the system services in these directories:

  • /usr/lib/systemd/system
  • /lib/systemd/system
  • /etc/systemd/system

Files for user services can be found in these directories:

  • /usr/lib/systemd/user
  • /lib/systemd/user
  • /etc/systemd/user
  • $USER/.config/systemd/user

Note that services which are provided by packages are usually located in the /usr/lib or /lib subdirectories. Modified unit files that override default unit properties are located in /etc. You can read more details about it all in the article Using Systemd Services in Linux.

Rate the Article

1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading...
Creative Commons License
The article is distributed under Creative Commons ShareAlike 4.0 license. Link to the source is required .

Leave a Comment