From dd04624ba29afc0a2e4bd149d9a020ed610f9723 Mon Sep 17 00:00:00 2001 From: bserie Date: Mon, 2 Jan 2017 15:23:58 +0100 Subject: [PATCH] export XDG_RUNTIME_DIR="/run/user/$UID" --- HowtoSystemd.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/HowtoSystemd.md b/HowtoSystemd.md index 5a78d03a..88f123c7 100644 --- a/HowtoSystemd.md +++ b/HowtoSystemd.md @@ -259,6 +259,12 @@ $ systemctl --user restart tomcat $ systemctl --user stop tomcat ~~~ +Pour pouvoir gérer `systemctl --user` via `sudo -iu foo`, il est conseillé de mettre ceci dans `/etc/profile.d/systemd.sh` : + +~~~ +export XDG_RUNTIME_DIR="/run/user/$UID" +~~~ + # Utilisation avancée ## Débug