Add example ubuntu serviced unit

This commit is contained in:
Frank A. Krueger 2017-11-23 12:08:30 -08:00
parent 1f1c90c250
commit 30af34108d
1 changed files with 13 additions and 0 deletions

13
ooui.service Normal file
View File

@ -0,0 +1,13 @@
[Unit]
Description=Ooui Service
After=network.target
[Service]
Type=simple
Environment=HOME=/home/ubuntu
WorkingDirectory=/home/ubuntu/Ooui/PlatformSamples/AspNetCoreMvc
ExecStart=/usr/bin/dotnet run --no-build --server.urls=http://0.0.0.0:80/
Restart=on-abort
[Install]
WantedBy=multi-user.target