[Unit] Description=Python Server for MPV After=network.target [Service] User= WorkingDirectory= ExecStart= Restart=on-failure Environment="MPV_SOCKET=/tmp/mpvsocket" Environment="LISTEN_ADDRESS=0.0.0.0" Environment="LISTEN_PORT=42069" Environment="DATABASE_URL=mysql+mysqldb://user:password@localhost:3306/mpv" [Install] WantedBy=multi-user.target