diff --git a/api.blog.service b/api.blog.service new file mode 100644 index 0000000..33d23ec --- /dev/null +++ b/api.blog.service @@ -0,0 +1,16 @@ +[Unit] +Description=Robware Blog API + +[Service] +WorkingDirectory=/var/www/Api.Blog +ExecStart=/usr/bin/dotnet /var/www/Api.Blog/Robware.Api.Blog.dll +Restart=always +# Restart service after 10 seconds if the dotnet service crashes: +RestartSec=10 +KillSignal=SIGINT +SyslogIdentifier=Api.Blog +User=www-data +Environment=ASPNETCORE_ENVIRONMENT=Production + +[Install] +WantedBy=multi-user.target \ No newline at end of file