systemd: add service
This commit is contained in:
parent
9043844893
commit
6c802d0ae4
6
makefile
Normal file
6
makefile
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
install:
|
||||||
|
cp ./zremap.service /etc/systemd/system
|
||||||
|
cp ./zremap-start /usr/local/bin
|
||||||
|
systemctl daemon-reload
|
||||||
|
systemctl enable zremap.service
|
5
zremap-start
Executable file
5
zremap-start
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
sleep 1
|
||||||
|
zremap /dev/input/by-path/platform-i8042-serio-0-event-kbd
|
||||||
|
|
||||||
|
|
13
zremap.service
Normal file
13
zremap.service
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=zremap keyboard remapping service
|
||||||
|
After=system.slice sysinit.target basic.target systemd-journald.socket
|
||||||
|
Before=shutdown.target multi-user.target
|
||||||
|
StartLimitIntervalSec=0
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
Restart=no
|
||||||
|
ExecStart=/usr/local/bin/zremap-start
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user