systemd: add ydotool.service system-level unit
This commit is contained in:
parent
27c0a1560e
commit
9c05d385e7
20
etc/systemd/system/ydotool.service
Normal file
20
etc/systemd/system/ydotool.service
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user