📕 subnode [[@flancian/systemd]]
in 📚 node [[systemd]]
-
I run all [[agora]] services as systemd [[user services]].
- How to keep a user process running:
-
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 anexample.servicefile and then:systemctl --user start examplesystemctl --user enable example
- See
agora-server.servicein [[go/agora-server]] as an example. - If you want to refer to the home directory in a user systemd service (I use a lot of these, also on my workstations), you can use the variable
%hfor it.~,$HOMEwon't work.
📄
pushed from garden/flancian/journal/2022-08-21.md by @flancian
-
#push [[systemd]]
- [[alternating layouts]] doesn't work for [[sway]] it seems, no surprise
- Finally made [[autopush]] (for my garden) a [[systemd user service]] on [[sila]].
📄
pushed from garden/flancian/journal/2023-04-03.md by @flancian
-
#push [[systemd]]
- to actually always restart a service instead of giving up even when you passed
Restart=always, you need to also passStartLimitIntervalSec=0in the[Unit]section. - source: https://unix.stackexchange.com/questions/289629/systemd-restart-always-is-not-honored
- to actually always restart a service instead of giving up even when you passed
📄
pushed from garden/flancian/agora service.md by @flancian
📖 stoas
- public document at doc.anagora.org/systemd
- video call at meet.jit.si/systemd