mirror of
https://github.com/abraunegg/onedrive
synced 2024-05-09 17:26:47 +02:00
da9cc628cb
* 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
15 lines
331 B
SYSTEMD
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 |