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