summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorRobert Helgesson <robert@rycee.net>2019-08-19 16:05:44 +0200
committerRobert Helgesson <robert@rycee.net>2020-09-12 18:29:46 +0200
commitfbc5093649b17b65a5db6caa252f7d3aa99f94d0 (patch)
tree0122881b77666528b463bf25f585f7e073aaaec7 /doc
parent37d29394ecba3ccff2083119ec49fc3eaf36db8c (diff)
hooks: add moveSystemdUserUnitsHook
This hook moves systemd user service file from `lib/systemd/user` to `share/systemd/user`. This is to allow systemd to find the user services when installed into a user profile. The `lib/systemd/user` path does not work since `lib` is not in `XDG_DATA_DIRS`.
Diffstat (limited to 'doc')
-rw-r--r--doc/stdenv/stdenv.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/doc/stdenv/stdenv.xml b/doc/stdenv/stdenv.xml
index f97c2a145af5..e85e2ccb0ec4 100644
--- a/doc/stdenv/stdenv.xml
+++ b/doc/stdenv/stdenv.xml
@@ -1836,6 +1836,19 @@ addEnvHooks "$hostOffset" myBashFunction
</varlistentry>
<varlistentry>
<term>
+ <literal>move-systemd-user-units.sh</literal>
+ </term>
+ <listitem>
+ <para>
+ This setup hook moves any systemd user units installed in the lib
+ subdirectory into share. In addition, a link is provided from share to
+ lib for compatibility. This is needed for systemd to find user services
+ when installed into the user profile.
+ </para>
+ </listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>
<literal>set-source-date-epoch-to-latest.sh</literal>
</term>
<listitem>