NethServer Version: 7.9.2009
Hi all… been struggling with this for a few days, it’s time to concede defeat and ask for some help. I’m trying to get the abraunegg onedrive client to synchronise my local file shares with OneDrive.
Following the instuctions, everything works great when starting the program manually, but it seems like it can’t read the config properly when run as a service.
- Config files and authorisation tokens stored in /etc/onedrive/scans. Owner of all directories and files is root
- Logged in as root, running ‘onedrive --monitor --confdir="/etc/onedrive/scans/"’ works as expected. Client does not ask to be reauthorised and proceeds to pick up where it left off after it was last closed
- I’ve created a custom service /etc/systemd/system/sharepoint-scans.service per the template provided, with the line ExecStart=/usr/local/bin/onedrive --monitor --confdir="/etc/onedrive/scans/"
and commented out a couple of options that were causing errors when running systemctl enable sharepoint-scans
- systemctl start sharepoint-scans attempts to start the service, but the log reports that the process fails because it wants to be authorised again… which is generally a sure sign that the config file is not being read.
I am not super confident with administering Linux systems (hence using NS…) and don’t really understand the way that privileges/escalation works… but I thought that the service would run the process as root, so if the manual command worked as root there shouldn’t be any difference in the way that it starts?
Sorry, I’m totally lost - willing to hear any suggestions.