summarylogtreecommitdiffstats
path: root/opentabletdriver.service
diff options
context:
space:
mode:
authorMoeLava2020-12-22 00:06:34 +0700
committerMoeLava2020-12-23 13:29:14 +0700
commit50ee5dba0605d7f422d445cecdd38f4a28cc615d (patch)
treee06ad1a31315425b258b2c6c2e41fb4ec8750b49 /opentabletdriver.service
parentf2193622427b6e28a52339424d0d3a7bb194c24f (diff)
downloadaur-50ee5dba0605d7f422d445cecdd38f4a28cc615d.tar.gz
Packaging overhaul
- systemd service now has a grace period when restarting too many times - Daemon can be started without systemd by running "otd" - Add instructions and common error fixes to the install file
Diffstat (limited to 'opentabletdriver.service')
-rw-r--r--opentabletdriver.service10
1 files changed, 7 insertions, 3 deletions
diff --git a/opentabletdriver.service b/opentabletdriver.service
index 19c7983b30f..95dc3b116ac 100644
--- a/opentabletdriver.service
+++ b/opentabletdriver.service
@@ -1,10 +1,14 @@
[Unit]
Description=OpenTabletDriver Daemon
+After=graphical.target
+PartOf=graphical.target
+StartLimitIntervalSec=60
+StartLimitBurst=2
[Service]
-ExecStart=/usr/bin/dotnet /usr/share/OpenTabletDriver/OpenTabletDriver.Daemon.dll -c /usr/share/OpenTabletDriver/Configurations
+ExecStart=/usr/bin/otd
Restart=always
-RestartSec=30
+RestartSec=10s
[Install]
-WantedBy=default.target \ No newline at end of file
+WantedBy=graphical.target