Files
home-data-collection-tools/systemd/solar-server.service

15 lines
428 B
Desktop File

[Unit]
Description=The solar JSON API written in rust
Requires=network.target
After=network.target
[Service]
Type=simple
WorkingDirectory=/home/pi/project/home-data-collection-tools/target/release
ExecStart=/home/pi/project/home-data-collection-tools/target/release/solar_api --database-path /home/pi/logs/solarpaneloutput.db --listening-port 3001
Restart=on-abnormal
RestartSec=30
User=pi
[Install]
WantedBy=multi-user.target