I want to run systemd copy for my user to orchestrate daemon workers.
I've enabled lingering for my user:
$ sudo loginctl enable-linger dmitry
After it I'm trying to run basic systemctl command and I run into this error:
$ systemctl --user show-environment
Failed to get environment: Process org.freedesktop.systemd1 exited with status 1
$ sudo systemctl --user show-environment
Failed to connect to bus: No such file or directory
How can I fix this problem?
sudo systemctl --user? Also, did you restart after enabling linger? – muru Mar 15 '18 at 13:14Failed to connect to bus: No such file or directory. No, I didn't restart. Can I do it without system restart? – Dmitry Mar 15 '18 at 13:51