1
0
Fork 0
kubernetes/music-assistant/restart-sync.service

23 lines
464 B
INI

# vim: set ft=systemd :
# In order for this to be effective, `shairport-sync.service` needs a
# configuration override to enable auto-restart, e.g.:
#
# [Service]
# Restart=always
# RestartSec=1
[Unit]
Description=Restart shairport-sync when music-assistant restarts
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/local/libexec/restart-sync.sh
Restart=always
RestartSec=1
[Install]
WantedBy=shairport-sync.service