Skip to content

Instantly share code, notes, and snippets.

@gpoole
Created April 17, 2021 02:54
Show Gist options
  • Save gpoole/841e84dbe95ae17caf2ed1de0b4150aa to your computer and use it in GitHub Desktop.
Save gpoole/841e84dbe95ae17caf2ed1de0b4150aa to your computer and use it in GitHub Desktop.
Watch service for systemd running outside Funkwhale all-in-one container
[Unit]
Description=Funkwhale watch changes service
[Service]
Type=simple
ExecStart=docker exec -t funkwhale manage import_files <LIBRARY_ID> /music --watch --recursive --noinput --in-place
Restart=on-failure
[Install]
WantedBy=multi-user.target
cp funkwhale-watch.service /etc/systemd/system
systemctl enable funkwhale-watch
systemctl start funkwhale-watch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment