Skip to content

Instantly share code, notes, and snippets.

@TheyCallMeLinux
Created February 22, 2023 02:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheyCallMeLinux/cdc59d9852f56bbdb2e1bc2aa465dc26 to your computer and use it in GitHub Desktop.
Save TheyCallMeLinux/cdc59d9852f56bbdb2e1bc2aa465dc26 to your computer and use it in GitHub Desktop.
m3u Playlist generator daemon
[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