[Unit]
Description=MiPi device HTTP control server
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
WorkingDirectory=/root/python
ExecStart=/usr/bin/python3 /root/python/device_server.py
Restart=on-failure
RestartSec=2
StandardOutput=journal
StandardError=journal

[Install]
WantedBy=multi-user.target
