πŸ“• Node [[systemd]]
πŸ“„ systemd.md by @flancian οΈπŸ”— ✍️
  • 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 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.
    • 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 %h for it. ~, $HOME won’t work.
πŸ“„ systemd.md by @anonymous@doc.anagora.org ✍️

Suddenly systemctl --user status agora-bot mastodon replies:

Warning: Journal has been rotated since unit was started. Log output is incompl
πŸ“„ systemd.md by @agora@botsin.space
πŸ“„ systemd.md by @an_agora@twitter.com
πŸ“„ systemd.md by @anagora@matrix.org
πŸ“„ systemd.md by @flancian@social.coop

Loading pushes...

Rendering context...