Add systemd service file

This commit is contained in:
Robert Marshall 2019-04-28 13:37:03 +01:00
parent 1f1ee33a4e
commit a94f97ff85

View file

@ -0,0 +1,16 @@
[Unit]
Description=Robware
[Service]
WorkingDirectory=/var/www/Website
ExecStart=/usr/local/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