Skip to content

Instantly share code, notes, and snippets.

@nguyenlocduy
Created February 6, 2011 15:45
Show Gist options
  • Save nguyenlocduy/813454 to your computer and use it in GitHub Desktop.
Save nguyenlocduy/813454 to your computer and use it in GitHub Desktop.
Script to run Nginx at startup (MacOS)
<?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>Disabled</key>
<false/>
<key>Label</key>
<string>com.duy.nginx</string>
<key>OnDemand</key>
<false/>
<key>ProgramArguments</key>
<array>
<string>/opt/nginx/sbin/nginx</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment