From 61d53f031ec3f4b5964e515a330496d8678897fa Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Wed, 11 Aug 2021 16:42:53 +0200 Subject: [PATCH] Default commit message, part of an automated flow. --- systemd.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/systemd.md b/systemd.md index 04f42c833..e0344a0ef 100644 --- a/systemd.md +++ b/systemd.md @@ -2,10 +2,10 @@ - How to keep a user process running: - [[go]] https://jimsaunders.net/2017/08/03/simple-per-user-systemd.html -- Scripts go in .config/systemd/user/, add an example.service file and then: - - systemctl --user enable example - - systemctl --user start example -- If you get any bus errors, you may need to: - - `export XDG_RUNTIME_DIR=/run/user/\`id -u\`` +- Scripts go in `.config/systemd/user/`, add an example.service file and then: + - `systemctl --user start example` + - `systemctl --user enable example` - Before you can run enable above, you may need to enable lingering for the user in question. As root: - - `loginctl enable-linger username` \ No newline at end of file + - `loginctl enable-linger username` +- If you get any bus errors, you may need to: + - `export XDG_RUNTIME_DIR=/run/user/\`id -u\`` \ No newline at end of file