You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for this software! I'm running it on Debian 12 in LXC (Proxmox), and I wanted a systemd unit file so the AmbientWeather Local Server would automatically start after a reboot. (This is not the dotnet systemd integration.) Here's what works for me:
[Unit]
Description=AmbientWeather Local Server
[Service]
Environment=DOTNET_CLI_HOME=/root/ambientweather-local-server/src/Api/ DOTNET_CLI_TELEMETRY_OPTOUT=1
Type=exec
ExecStart=/usr/bin/dotnet run --project /root/ambientweather-local-server/src/Api/Api.csproj
StandardOutput=file:/root/ambientweather-local-server/src/Api/output/logs.txt
StandardError=file:/root/ambientweather-local-server/src/Api/output/logs.txt
SyslogIdentifier=AmbientWeather-Local-Server
[Install]
WantedBy=multi-user.target
I saved that as /etc/systemd/system/AmbientWeather.service . I chose file: for output instead of append: so I don't have to configure any log rotation; historical log data can be accessed with journalctl --full --no-pager --unit AmbientWeather so I personally don't miss it. I turned off dotnet telemetry since this container doesn't have Internet access.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Thank you for this software! I'm running it on Debian 12 in LXC (Proxmox), and I wanted a systemd unit file so the AmbientWeather Local Server would automatically start after a reboot. (This is not the dotnet systemd integration.) Here's what works for me:
I saved that as
/etc/systemd/system/AmbientWeather.service
. I chosefile:
for output instead ofappend:
so I don't have to configure any log rotation; historical log data can be accessed withjournalctl --full --no-pager --unit AmbientWeather
so I personally don't miss it. I turned off dotnet telemetry since this container doesn't have Internet access.Beta Was this translation helpful? Give feedback.
All reactions