play-daemon-threaded/play-daemon.service.example
2023-12-21 14:40:55 +01:00

20 lines
520 B
Plaintext

[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