feat(systemd): add config

This commit is contained in:
2025-11-09 09:45:36 -05:00
parent 5ba6a04786
commit 32ff6cb136
5 changed files with 70 additions and 0 deletions

14
home/user/es-9.service Normal file
View File

@@ -0,0 +1,14 @@
[Unit]
Description=ES-9 Audio Interface
BindsTo=dev-snd-by\x2did-usb\x2dExpert_Sleepers_Ltd_ES\x2d9\x2d01.device
After=dev-snd-by\x2did-usb\x2dExpert_Sleepers_Ltd_ES\x2d9\x2d01.device
Requisite=dev-snd-by\x2did-usb\x2dExpert_Sleepers_Ltd_ES\x2d9\x2d01.device
[Install]
WantedBy=dev-snd-by\x2did-usb\x2dExpert_Sleepers_Ltd_ES\x2d9\x2d01.device
[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=%h/.config/scripts/audio/es9start.sh
ExecStop=%h/.config/scripts/audio/es9stop.sh