Johan Le Baut 22 godzin temu
rodzic
commit
b484a8e6f2
2 zmienionych plików z 18 dodań i 0 usunięć
  1. 5 0
      README.md
  2. 13 0
      check-umc.service

+ 5 - 0
README.md

@@ -46,4 +46,9 @@ while true; do wpctl status | grep UMC404HD && echo "OK" || { echo "KO restart w
 script check:
 ```
 mkdir -p ~/.config/systemd/user
+cp check-umc.service ~/.config/systemd/user/
+systemctl --user daemon-reload
+systemctl --user enable --now surveiller-umc.service
+journalctl --user -u surveiller-umc.service -n 20 --no-pager
+sudo loginctl enable-linger olimex
 ```

+ 13 - 0
check-umc.service

@@ -0,0 +1,13 @@
+[Unit]
+Description=Surveiller les quatre entrees UMC404HD dans PipeWire
+Wants=pipewire.socket wireplumber.service
+After=pipewire.socket wireplumber.service
+
+[Service]
+Type=simple
+ExecStart=/home/olimex/config-looper0/check-umc.sh
+Restart=on-failure
+RestartSec=10
+
+[Install]
+WantedBy=default.target