1c0eb91333
- change from mysql-connector-python to sqlalchemy - allow for connection to sqlite3, mysql, mariadb, postgres, and oracle databases - change `DATE` columns to `DATETIME` type - add WHO columns - install database connectors and required packages
18 lines
420 B
Desktop File
18 lines
420 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="DATABASE_URL=mysql+mysqldb://user:password@localhost:3306/mpv"
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|