Skip to content

Instantly share code, notes, and snippets.

@HalidCisse
Forked from richardtallent/dotnet.api.plist
Created October 31, 2018 15:31
Show Gist options
  • Save HalidCisse/80585fde893291f6f762c4e40d1af467 to your computer and use it in GitHub Desktop.
Save HalidCisse/80585fde893291f6f762c4e40d1af467 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>GroupName</key>
<string>_www</string>
<key>InitGroups</key>
<true/>
<key>KeepAlive</key>
<true/>
<key>Label</key>
<string>dotnet.api</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/share/dotnet/dotnet</string>
<string>MyWebApi.dll</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>StandardErrorPath</key>
<string>/tmp/dotnet-api-sterr.log</string>
<key>StandardOutPath</key>
<string>/tmp/dotnet-api-stdout.log</string>
<key>UserName</key>
<string>_www</string>
<key>WorkingDirectory</key>
<string>/path/to/dotnetapi/published/folder/</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment