diff --git a/contrib/systemd/onedrive.service.in b/contrib/systemd/onedrive.service.in index 0623701a..6298c0b4 100644 --- a/contrib/systemd/onedrive.service.in +++ b/contrib/systemd/onedrive.service.in @@ -18,6 +18,7 @@ ProtectKernelTunables=true #ProtectKernelLogs=true ProtectControlGroups=true RestrictRealtime=true +ExecStartPre=/usr/bin/sleep 15 ExecStart=@prefix@/bin/onedrive --monitor Restart=on-failure RestartSec=3 diff --git a/contrib/systemd/onedrive@.service.in b/contrib/systemd/onedrive@.service.in index 944dcebd..7d25c6e3 100644 --- a/contrib/systemd/onedrive@.service.in +++ b/contrib/systemd/onedrive@.service.in @@ -18,6 +18,7 @@ ProtectKernelTunables=true #ProtectKernelLogs=true ProtectControlGroups=true RestrictRealtime=true +ExecStartPre=/usr/bin/sleep 15 ExecStart=@prefix@/bin/onedrive --monitor --confdir=/home/%i/.config/onedrive User=%i Group=users