All checks were successful
Build Docker Image / build (push) Successful in 12m39s
18 lines
445 B
Desktop File
18 lines
445 B
Desktop File
[Unit]
|
|
Description=Python Server for MPV
|
|
After=network.target
|
|
|
|
[Service]
|
|
User=<USER>
|
|
WorkingDirectory=<PATH_TO_PYTHON_SCRIPT_DIRECTORY>
|
|
ExecStart=<PATH_TO_PYTHON> <PATH_TO_PYTHON_RUN_SCRIPT>
|
|
Restart=on-failure
|
|
Environment="MPV_SOCKET=/tmp/mpvsocket"
|
|
Environment="LISTEN_ADDRESS=0.0.0.0"
|
|
Environment="LISTEN_PORT=42069"
|
|
Environment="SQLALCHEMY_DATABASE_URI=mysql+mysqldb://user:password@localhost:3306/mpv"
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|