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