From ba1d225dba3ab195c344d8362a6cdd5e7814fb3e Mon Sep 17 00:00:00 2001 From: abraunegg Date: Sun, 29 Sep 2024 15:25:38 +1000 Subject: [PATCH] Add a 'sleep' when starting systemd service * Add a 'sleep' when starting systemd service to allow dbus to correctly start and be functional --- contrib/systemd/onedrive.service.in | 1 + contrib/systemd/onedrive@.service.in | 1 + 2 files changed, 2 insertions(+) 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