You are not logged in.
Pages: 1
Hi all,
I'm having some trouble setting up my first user-created systemd units.
I'm trying to enable isync to automatically sync my mailboxes as outlined under the automatic synchronization section in the isync Arch wiki page.
I've created the mbsync.service and mbsync.timer files, and used sudo systemctl daemon-reload to reload systemd.
However, when I run sudo systemctl --user enable mbsync.timer I get the error
Failed to connect to bus: No such file or directory
And when I run it without the --user option I get
Failed to enable unit: Unit file mbsync.timer does not exist.
Following the systemd wiki page it says "All the user services will be placed in ~/.config/systemd/user/ " and to "execute systemctl --user enable service for any service you want to be autostarted."
I'm sure I'm overlooking something basic or haven't understood a key concept here -- but I'm a bit stumped as to what to try next.
Any help would be greatly appreciated.
Thanks.
Last edited by dcaspar (2020-09-07 20:21:03)
Offline
As you're enabling services for your user only, you don't need to / should not run systemctl as root / using sudo. I've created a dummy file in my own .config/systemd/user directory, and running the command with sudo gives me the same error - running it without sudo however works.
Nanos gigantum humeris insidentes.
Offline
D'oh
Thanks!
Offline
Pages: 1