abraunegg-onedrive/systemd.units/onedrive.service.in
abraunegg da9cc628cb Update Makefile and systemd files
* Change the ordering of 'make install' so that directories and
permissions are set first
* Use wildcard to copy service files to systemd directory as 'install'
was failing when there was @ in the script
* Update systemd units files based on
https://www.freedesktop.org/wiki/Software/systemd/NetworkTarget/ for
starting the onedrive service
2018-04-22 08:29:43 +10:00

14 lines
266 B
SYSTEMD

[Unit]
Description=OneDrive Free Client
Documentation=https://github.com/skilion/onedrive
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=@PREFIX@/bin/onedrive --monitor
Restart=on-failure
RestartSec=3
[Install]
WantedBy=default.target