website/Infrastructure/website.service

16 lines
No EOL
360 B
Desktop File

[Unit]
Description=Robware
[Service]
WorkingDirectory=/var/www/Website
ExecStart=/usr/bin/dotnet /var/www/Website/Website.dll
Restart=always
# Restart service after 10 seconds if the dotnet service crashes:
RestartSec=10
KillSignal=SIGINT
SyslogIdentifier=Website
User=apache
Environment=ASPNETCORE_ENVIRONMENT=Production
[Install]
WantedBy=multi-user.target