2024-09-04 15:15:40 -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"
|
2024-09-05 04:37:13 -07:00
|
|
|
Environment="LISTEN_ADDRESS=0.0.0.0"
|
|
|
|
Environment="LISTEN_PORT=42069"
|
2024-09-06 02:14:12 -07:00
|
|
|
Environment="DATABASE_URL=mysql+mysqldb://user:password@localhost:3306/mpv"
|
2024-09-04 15:15:40 -07:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
|