mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-01 05:22:14 +02:00
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
This commit is contained in:
parent
ace9482f23
commit
9b361101f6
|
@ -1,10 +1,13 @@
|
|||
[Unit]
|
||||
Description=OneDrive Free Client
|
||||
Documentation=https://github.com/skilion/onedrive
|
||||
Requires=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=@PREFIX@/bin/onedrive -m
|
||||
Restart=no
|
||||
ExecStart=@PREFIX@/bin/onedrive --monitor
|
||||
Restart=on-failure
|
||||
RestartSec=3
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
15
systemd.units/onedrive@.service.in
Normal file
15
systemd.units/onedrive@.service.in
Normal file
|
@ -0,0 +1,15 @@
|
|||
[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
|
Loading…
Reference in a new issue