Add systemd service file
This commit is contained in:
parent
1f1ee33a4e
commit
a94f97ff85
1 changed files with 16 additions and 0 deletions
16
Infrastructure/website.service
Normal file
16
Infrastructure/website.service
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue