2024-08-21 00:00:59 -07:00
|
|
|
[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="HOST_NAME=0.0.0.0"
|
|
|
|
Environment="PORT_NUMBER=42069"
|
2024-09-04 11:54:05 -07:00
|
|
|
Environment="MYSQL_HOST=http://localhost"
|
|
|
|
Environment="MYSQL_USER=mpvuser"
|
|
|
|
Environment="MYSQL_PASSWORD=SecretPassword"
|
|
|
|
Environment="MYSQL_PORT=3306"
|
2024-08-21 00:00:59 -07:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|