Files
APT-Package/alumnihub_10.0_amd64/etc/systemd/system/alumnihub.service
KoCoder 162fd61936
All checks were successful
build-debian-package / Build the debian package (push) Successful in 3m4s
Use adduser --system to prevent the script from failing
2026-01-15 14:48:54 +01:00

20 lines
573 B
Desktop File

[Unit]
Description=Alumnihub Webservice
[Service]
WorkingDirectory=/opt/alumnihub
ExecStart=/usr/bin/dotnet /opt/alumnihub/Oqtane.Server.dll
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=5
KillSignal=SIGINT
SyslogIdentifier=alumnihub
User=alumnihub
Environment=ASPNETCORE_ENVIRONMENT=Production
Environment=ASPNETCORE_URLS="http://127.0.0.1:5000"
Environment=ASPNETCORE_FORWARDEDHEADERS_ENABLED=true
Environment=ASPNETCORE_FORWARDEDHEADERS_PROXIES=127.0.0.1
Environment=DOTNET_NOLOGO=true
[Install]
WantedBy=multi-user.target