[Unit]
Description=ToneOut Pi Feed Node Admin API
After=network-online.target icecast2.service
Wants=network-online.target

[Service]
Type=simple
User=toneout
Group=toneout
WorkingDirectory=/opt/toneout-api
ExecStart=/usr/bin/python3 /opt/toneout-api/app.py
Restart=on-failure
RestartSec=5
StandardOutput=append:/var/log/toneout-api.log
StandardError=append:/var/log/toneout-api.log

[Install]
WantedBy=multi-user.target
