feat: systemd error troubleshooting while using --user

This commit is contained in:
Michele Cereda
2023-11-09 00:14:06 +01:00
parent aa1c34ee16
commit aea570d2ad

View File

@@ -4,6 +4,7 @@
1. [TL;DR](#tldr)
1. [User services](#user-services)
1. [Failed to connect to bus: No medium found](#failed-to-connect-to-bus-no-medium-found)
1. [Keep past boots record (persistent logging)](#keep-past-boots-record-persistent-logging)
1. [Resolved](#resolved)
1. [Disable systemd-resolved](#disable-systemd-resolved)
@@ -209,6 +210,19 @@ systemctl --user enable --now 'davmail.service'
systemctl --user status 'davmail.service'
```
### Failed to connect to bus: No medium found
```sh
$ systemctl --user status
Failed to connect to bus: No medium found
$ export XDG_RUNTIME_DIR="/run/user/$(id -u)"
$ systemctl --user status
● hostname
State: running
Units: 228 loaded (incl. loaded aliases)
```
## Keep past boots record (persistent logging)
Edit the journal configuration file and set the following option: