Created
April 17, 2021 02:54
-
-
Save gpoole/841e84dbe95ae17caf2ed1de0b4150aa to your computer and use it in GitHub Desktop.
Watch service for systemd running outside Funkwhale all-in-one container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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