Skip to content

Commit

Permalink
feat: add restart when failed
Browse files Browse the repository at this point in the history
as title.
  • Loading branch information
18202781743 committed Jan 14, 2025
1 parent 661d4eb commit 2560fdb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions misc/dde-clipboard-daemon.service.in
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions misc/dde-clipboard.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 2560fdb

Please sign in to comment.