22 lines
608 B
SYSTEMD
22 lines
608 B
SYSTEMD
[Unit]
|
|
Description=Fcking NAD LIIINKKK
|
|
|
|
# This file lives in /etc/systemd/system -- then `systemctl daemon-reload`
|
|
|
|
After=network.target hyperion.service dev-input-bt\x2dremote.device
|
|
BindsTo=dev-input-bt\x2dremote.device
|
|
# This horrible string is systemd's mangled impression of the bluetooth remote's symlink as defined in my udev rule
|
|
|
|
Before=kodi.service
|
|
# Being before kodi is vital in order to grab the remote media keys
|
|
|
|
[Service]
|
|
Environment="PATH=/opt/hyperion/bin"
|
|
ExecStart=/root/nad-link/daemon.py
|
|
WorkingDirectory=/root/nad-link
|
|
Nice=-20
|
|
Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|