You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
keyboard-reader/debian/etc/systemd/system/keyboard-reader@.service

20 lines
534 B

[Unit]
Description=Yablochkov keyboard reader %i
[Service]
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=keyboard-reader-%i
WorkingDirectory=/opt/ocppc
EnvironmentFile=/opt/conf/configuration_vars.env
EnvironmentFile=/opt/conf/configuration_vars_model.env
EnvironmentFile=/opt/conf/configuration_vars_personal.env
ExecStart=/opt/ocppc/bin/keyboard-reader --nospace --dev=/dev/input/event%i
Restart=on-failure
RestartSec=5s
User=debian
Group=input
ExecStop=/bin/kill -TERM $MAINPID
[Install]
WantedBy=multi-user.target