From e942e3eb29440a6b78253e91330a0931f901a247 Mon Sep 17 00:00:00 2001 From: Flancian <0@flancia.org> Date: Wed, 18 Aug 2021 18:14:01 +0200 Subject: [PATCH] Default commit message, part of an automated flow. --- journal/2021-08-18.md | 1 + systemd.md | 20 +++++++++++--------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/journal/2021-08-18.md b/journal/2021-08-18.md index 5b154e022..d2ee5caf4 100644 --- a/journal/2021-08-18.md +++ b/journal/2021-08-18.md @@ -14,3 +14,4 @@ - had to set: - `"protocolUseSSL": true` - `"allowFreeURL": true` + - [[systemd]] diff --git a/systemd.md b/systemd.md index e0344a0ef..cfee8d29a 100644 --- a/systemd.md +++ b/systemd.md @@ -1,11 +1,13 @@ # Systemd -- 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 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` -- If you get any bus errors, you may need to: - - `export XDG_RUNTIME_DIR=/run/user/\`id -u\`` \ No newline at end of file +- I run all [[agora]] services as systemd user services. + - How to keep a user process running: + - [[go]] https://jimsaunders.net/2017/08/03/simple-per-user-systemd.html + - Before you can run enable (making it sticky across reboots) above, you'll probably need to enable lingering for the user in question. As root (ask your friendly sysadmin if you somehow don't have root): + - `loginctl enable-linger username` + - 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` + - See `agora-server.service` in [[go/agora-server]] as an example.