[systemd-devel] Requiring hardware device and escaping device names

Kai Hendry hendry at webconverger.com
Tue Mar 25 03:01:07 PDT 2014


Hi, I have a keyboard daemon that sometimes fails to come up, I guess
because the device is not there. However my current attempt does not
work:

[hendry at alarmpi ~]$ cat /usr/lib/systemd/system/shkd.service
[Unit]
Description=Simple HotKey Daemon
Requires=dev-input-by\x2did-usb\x2d13ba_0001\x2devent\x2dkbd.device
[Service]
Type=simple
Restart=always
ExecStart=/usr/local/bin/shkd /dev/input/by-id/usb-13ba_0001-event-kbd
[Install]
WantedBy=multi-user.target



Is Requires= incorrect? Is my escaping correct? Do I need to actually
escape in the first place?


Btw I quickly put together a escaping and un-escaping tool here:
http://systemd.dabase.com/

I'd really appreciate a review.



Many thanks,


More information about the systemd-devel mailing list