Hi,
I'm using a OneDrive free client (https://github.com/skilion/onedrive) to synchronize some dir between my OMV storagePool and some users' OneDrive accounts.
Let's say that I have 2 users for the example.
The OneDrive client is configured and running for both in a user ssh session.
I now want to run the client for both as a background service with systemd. Unfortunatly, my systemd knowlegde is relatively poor at the moment...
I setup a service file for that.
Code
root@home-server:/opt/onedrive# cat onedrive@.service
[Unit]
Description=OneDrive Free Client
Documentation=https://github.com/skilion/onedrive
After=network.target
[Service]
ExecStart=/usr/local/bin/OneDrive --monitor --confdir=/%h/.config/onedrive/
User=%i
Group=users
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target
Alles anzeigen
But when I try to enable the service, I have this error.
Code
root@home-server:/opt/onedrive# systemctl --user enable onedrive@.service
Failed to connect to bus: No such file or directory
Any help by a systemd king is welcome
Thanks