Update solar server systemd example
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
[Unit]
|
||||
Description=A pistache based HTTP server serving the Solar API
|
||||
Description=A .NET Core application providing the Solar REST API
|
||||
Requires=network.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/local/bin/solar-server -p 3001 --connection-string /mnt/data0/log/solarpaneloutput.db
|
||||
Environment=ASPNETCORE_URLS=http://*:3001
|
||||
ExecStart=/home/pi/.dotnet/dotnet /home/pi/bin/Solar.Api/Solar.Api.dll
|
||||
Restart=always
|
||||
RestartSec=30
|
||||
User=pi
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user