From afd15961baa68af91800263c635a37558c8189ea Mon Sep 17 00:00:00 2001 From: Troy Curtis Jr Date: Jul 29 2021 12:29:20 +0000 Subject: Add _userunitdir to the Systemd packaging guidelines. --- diff --git a/guidelines/modules/ROOT/pages/Systemd.adoc b/guidelines/modules/ROOT/pages/Systemd.adoc index 3b47499..1d75417 100644 --- a/guidelines/modules/ROOT/pages/Systemd.adoc +++ b/guidelines/modules/ROOT/pages/Systemd.adoc @@ -340,9 +340,9 @@ For further details see the https://www.freedesktop.org/software/systemd/man/sys === Filesystem locations -Packages with systemd unit files *must* put them into `+%{_unitdir}+`. `+%{_unitdir}+` evaluates to /usr/lib/systemd/system on all Fedora systems (F-15+). Unit files are architecture independent (hence, not `+%{_lib}+`) and needed early in the boot process. +Packages with systemd unit files *must* put them into `+%{_unitdir}+` or `+%{_userunitdir}+`. `+%{_unitdir}+` evaluates to /usr/lib/systemd/system on all Fedora systems (F-15+) and `+%{_userunitdir}%+` evaluates to /usr/lib/systemd/user. Unit files are architecture independent (hence, not `+%{_lib}+`) and needed early in the boot process. Most systemd service files should use `+%{_unitdir}+`. However, if the service runs as part of a user session (e.g. pipewire services, gpg-agent, tracker, etc), use `+%{_userunitdir}+` instead. -Please note that in order for the `+%{_unitdir}+` macro to exist, your package must have: +Please note that in order for the `+%{_unitdir}+` or `+%{_userunitdir}+` macro to exist, your package must have: .... BuildRequires: systemd-rpm-macros