You are not logged in.

#1 2020-09-07 18:56:33

dcaspar
Member
Registered: 2020-08-12
Posts: 51

[SOLVED] systemd user unit not found

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

#2 2020-09-07 20:07:12

StJimmy
Member
From: Rheinland
Registered: 2020-02-26
Posts: 72

Re: [SOLVED] systemd user unit not found

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

#3 2020-09-07 20:20:11

dcaspar
Member
Registered: 2020-08-12
Posts: 51

Re: [SOLVED] systemd user unit not found

D'oh

Thanks!

Offline

Board footer

Powered by FluxBB