systemd: add ydotool.service system-level unit

This commit is contained in:
surtur 2022-04-16 22:34:51 +02:00
parent 27c0a1560e
commit 9c05d385e7
Signed by: wanderer
GPG Key ID: 19CE1EC1D9E0486D

@ -0,0 +1,20 @@
# /etc/systemd/system/ydotool.service
[Unit]
Description=Starts ydotoold service
Documentation=/usr/include/linux/input-event-codes.h
[Service]
Type=simple
Restart=always
RestartSec=2
ExecStart=/usr/bin/ydotoold --socket-perm 0660
ExecReload=/usr/bin/kill -HUP $MAINPID
KillMode=process
TimeoutSec=30
User=nobody
Group=input
NoNewPrivileges=true
[Install]
WantedBy=default.target