From dbe93f1f678feca3140afe049173d54983e6886b Mon Sep 17 00:00:00 2001 From: YeShanShan Date: Tue, 14 Jan 2025 16:11:48 +0800 Subject: [PATCH] feat: add restart when failed as title. --- misc/dde-clipboard-daemon.service.in | 3 +++ misc/dde-clipboard.service.in | 3 +++ 2 files changed, 6 insertions(+) diff --git a/misc/dde-clipboard-daemon.service.in b/misc/dde-clipboard-daemon.service.in index 00a0a91..92a56dc 100644 --- a/misc/dde-clipboard-daemon.service.in +++ b/misc/dde-clipboard-daemon.service.in @@ -1,8 +1,11 @@ [Unit] Description=dde-clipboard-daemon +StartLimitBurst=3 [Service] Type=dbus BusName=org.deepin.dde.daemon.Clipboard1 ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/dde-clipboard-daemon Slice=session.slice +Restart=on-failure +RestartSec=3s diff --git a/misc/dde-clipboard.service.in b/misc/dde-clipboard.service.in index 4087cc4..5768c9a 100644 --- a/misc/dde-clipboard.service.in +++ b/misc/dde-clipboard.service.in @@ -7,9 +7,12 @@ After=dde-session-pre.target Requisite=dde-session-initialized.target PartOf=dde-session-initialized.target Before=dde-session-initialized.target +StartLimitBurst=3 [Service] Type=dbus BusName=org.deepin.dde.Clipboard1 ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/dde-clipboard Slice=session.slice +Restart=on-failure +RestartSec=3s