[Unit]
Description = play upload processing service
After = multi-user.target

[Service]
Type = exec
Restart = on-failure
ExecStart = /opt/play-daemon/env/bin/python3 play-daemon.py
WorkingDirectory = /opt/play-daemon
User = play-daemon
SyslogIdentifier = play-daemon

# This envvar is necessary to suppress a warning from huggingface.
# The transformers cache needs to point to a directory the configured
# user may write to.
Environment="TRANSFORMERS_CACHE=/data0/whisper_data"

[Install]
WantedBy = multi-user.target