stabilize systemd services: fix races, masked flooding, dependencies
- pd-synth: add After=usb-gadget-audio.service midi-bridge.service (was Wants= only, race) - usb-gadget-audio: add Restart=on-failure After=sysinit.target - pd-synth-i2s: fix Wants=configure-usb-audio.service → usb-gadget-audio.service - detect-usb-role.sh: hardcode gadget role (all 4 detection methods always fail, skip 2s sleep) - arduino-router-serial: masked on board (flooded 2173× restarts looking for nonexistent /dev/ttyGS0)
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Pure Data I2S DAC Synth (standalone)
|
Description=Pure Data I2S DAC Synth (standalone)
|
||||||
After=network.target sound.target
|
After=network.target sound.target
|
||||||
Wants=configure-usb-audio.service
|
Wants=usb-gadget-audio.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Pure Data USB Audio Synth
|
Description=Pure Data USB Audio Synth (Gadget Mode)
|
||||||
After=network.target sound.target
|
After=usb-gadget-audio.service midi-bridge.service
|
||||||
Wants=usb-gadget-audio.service
|
Wants=usb-gadget-audio.service midi-bridge.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Configure USB Audio Gadget
|
Description=Configure USB Audio Gadget
|
||||||
|
After=sysinit.target
|
||||||
Before=pd-synth.service
|
Before=pd-synth.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
@@ -7,6 +8,8 @@ Type=oneshot
|
|||||||
ExecStart=/usr/local/bin/configure-usb-audio.sh start
|
ExecStart=/usr/local/bin/configure-usb-audio.sh start
|
||||||
ExecStop=/usr/local/bin/configure-usb-audio.sh stop
|
ExecStop=/usr/local/bin/configure-usb-audio.sh stop
|
||||||
RemainAfterExit=yes
|
RemainAfterExit=yes
|
||||||
|
Restart=on-failure
|
||||||
|
RestartSec=2
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
Reference in New Issue
Block a user