mpv-youtube-queue-server/mpv-youtube-queue-server.service
Kyle Yasuda 497320c082
All checks were successful
Build Docker Image / build (push) Successful in 23s
0.0.2 (#1)
Co-authored-by: ksyasuda <ksyasuda@umich.edu>
Reviewed-on: #1
2024-09-05 04:37:13 -07:00

21 lines
493 B
Desktop File

[Unit]
Description=Python Server for MPV
After=network.target
[Service]
User=<USER>
WorkingDirectory=<PATH_TO_PYTHON_SCRIPT>
ExecStart=<PATH_TO_PYTHON> <PATH_TO_PYTHON_SCRIPT>
Restart=on-failure
Environment="MPV_SOCKET=/tmp/mpvsocket"
Environment="LISTEN_ADDRESS=0.0.0.0"
Environment="LISTEN_PORT=42069"
Environment="MYSQL_HOST=http://localhost"
Environment="MYSQL_USER=mpvuser"
Environment="MYSQL_PASSWORD=SecretPassword"
Environment="MYSQL_PORT=3306"
[Install]
WantedBy=multi-user.target