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

15 lines
331 B
SYSTEMD

[Unit]
Description=OneDrive Free Client for %i
Documentation=https://github.com/skilion/onedrive
After=network-online.target
Wants=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