Skip to content

Instantly share code, notes, and snippets.

@virtualdreams
Created April 4, 2017 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save virtualdreams/6e93cb28a97933dfcf267b68de09e791 to your computer and use it in GitHub Desktop.
Save virtualdreams/6e93cb28a97933dfcf267b68de09e791 to your computer and use it in GitHub Desktop.
dotnet systemd service
[Unit]
Description=dotnet <your service name>
After=network.target
[Service]
Environment=ASPNETCORE_URLS=http://127.0.0.1:5000/
EnvironmentFile=
;Restart=always
;RestartSec=10
Type=simple
SyslogIdentifier=notes-core
WorkingDirectory=/srv/www/app-core
ExecStart=/usr/local/bin/dotnet /srv/www/app-core/app.dll
User=www-data
Group=www-data
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment