Skip to content

Commit

Permalink
Merge pull request #221 from pallaswept/master
Browse files Browse the repository at this point in the history
Make systemd unit file more reliable as a user service
  • Loading branch information
ReimuNotMoe authored Feb 5, 2024
2 parents fed2094 + a2e7e5d commit 445c5ec
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Daemon/ydotool.service.in
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
[Unit]
Description=Starts ydotoold service
Description=Starts ydotoold user service

[Service]
Type=simple
Restart=always
RestartSec=3
ExecStartPre=/bin/sleep 2
ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/ydotoold
ExecReload=/usr/bin/kill -HUP $MAINPID
KillMode=process
TimeoutSec=180

[Install]
WantedBy=default.target
WantedBy=basic.target

0 comments on commit 445c5ec

Please sign in to comment.