Deamon management

This commit is contained in:
2026-10-17 03:53:51 +02:00
parent 335a4674d1
commit b77b4a3fc6
35 changed files with 2001 additions and 172 deletions

View File

@@ -0,0 +1,24 @@
# gKeyMapper daemon - systemd user unit.
#
# This file is installed by "make install", which fills in the binary directory
# for the configured PREFIX. Enable it per user with:
#
# systemctl --user daemon-reload
# systemctl --user enable --now gkeymapper-daemon
#
# It runs as a user service on purpose: the daemon needs the user's session for
# /dev/uinput and for the DISPLAY/WAYLAND_DISPLAY a "command" action inherits.
[Unit]
Description=gKeyMapper daemon - G1..G9 remapping for the Logitech G910
[Service]
Type=simple
ExecStart=@BINDIR@/gkeymapper-daemon
# Reload the mappings without a restart (the config file is watched as well).
ExecReload=/bin/kill -HUP $MAINPID
TimeoutStopSec=5
Restart=on-failure
RestartSec=2
[Install]
WantedBy=default.target