abraunegg-onedrive/systemd.units/onedrive@.service.in
abraunegg 9b361101f6 Update systemd service files
* Update single user file so that it requries the network to be online
before the service starts
* Create a multi-user service file for multi-user environments with each
user having their own onedrive account configuration (#321) - file
provided by @sbocquet
2018-04-12 12:43:23 +10:00

15 lines
334 B
SYSTEMD

[Unit]
Description=OneDrive Free Client for %i
Documentation=https://github.com/skilion/onedrive
Requires=network-online.target
After=network-online.target
[Service]
ExecStart=@PREFIX@/bin/onedrive --monitor --confdir=/home/%i/.config/onedrive
User=%i
Group=users
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target