I read that there are two folders for unit files (not in user mode).
/usr/lib/systemd/system/: units provided by installed packages
/etc/systemd/system/: units installed by the system administrator
Conflicting with this understanding is the answer to this question: How to write startup script for Systemd . Can someone fill in the missing information so that I understand what is going on? (**UPDATE: The answer has been updated, and my understanding no longer conflicts with it.**)
Also, it seems that the scripts are organized in subfolders within the
/etc/systemd/system/
folder:
getty.target.wants
multi-user.target.wants
In another location I read that there are other locations. It seems these are for user-specific services.
/usr/lib/systemd/user/ where services provided by installed packages go.
/etc/systemd/user/ where system-wide user services are placed by the system administrator.
~/.config/systemd/user/ where the user puts its own services.
----
Update 2015-08-31:
For the sake of others, here is a link to a related question I recently asked: Where do I put scripts executed by systemd units?
Asked by Jonathan Komar
(7034 rep)
Aug 23, 2015, 08:11 PM
Last activity: Jan 28, 2025, 02:07 PM
Last activity: Jan 28, 2025, 02:07 PM