mirror of
https://github.com/flancian/garden.git
synced 2026-08-07 15:06:19 +00:00
Default commit message, part of an automated flow.
This commit is contained in:
+5
-5
@@ -2,10 +2,10 @@
|
|||||||
|
|
||||||
- How to keep a user process running:
|
- How to keep a user process running:
|
||||||
- [[go]] https://jimsaunders.net/2017/08/03/simple-per-user-systemd.html
|
- [[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:
|
- Scripts go in `.config/systemd/user/`, add an example.service file and then:
|
||||||
- systemctl --user enable example
|
- `systemctl --user start example`
|
||||||
- systemctl --user start example
|
- `systemctl --user enable example`
|
||||||
- If you get any bus errors, you may need to:
|
|
||||||
- `export XDG_RUNTIME_DIR=/run/user/\`id -u\``
|
|
||||||
- Before you can run enable above, you may need to enable lingering for the user in question. As root:
|
- Before you can run enable above, you may need to enable lingering for the user in question. As root:
|
||||||
- `loginctl enable-linger username`
|
- `loginctl enable-linger username`
|
||||||
|
- If you get any bus errors, you may need to:
|
||||||
|
- `export XDG_RUNTIME_DIR=/run/user/\`id -u\``
|
||||||
Reference in New Issue
Block a user