Created
February 22, 2023 02:34
-
-
Save TheyCallMeLinux/cdc59d9852f56bbdb2e1bc2aa465dc26 to your computer and use it in GitHub Desktop.
m3u Playlist generator daemon
This file contains 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=Playlist generator daemon | |
[Service] | |
User=user | |
WorkingDirectory=/home/user | |
Type=simple | |
Environment="LC_ALL=en_US.UTF-8" | |
Environment="LANG=en_US.UTF-8" | |
ExecStart=/bin/sh -c 'while inotifywait --exclude .*.swp --exclude .*.swo --exclude .*.swx -q -r -e create,modify,move /home/user/Videos; do /home/user/Videos/playlist-generator-script.sh; done' | |
Restart=always | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment