Created
April 4, 2017 15:14
-
-
Save virtualdreams/6e93cb28a97933dfcf267b68de09e791 to your computer and use it in GitHub Desktop.
dotnet systemd service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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