Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

nginx: fixed KeepAlive in launchd plist

Nginx daemonizes which launchd doesn't like.  Launchd would try to
relaunch nginx due to the KeepAlive=true attribute.  By setting
KeepAlive to false and letting nginx daemonize, launchd is pacified.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information...
commit d34b2b10bbe03bf0dceafb0d54adb7c44b68376a 1 parent 768ee93
Stephen Larew authored adamv committed
Showing with 1 addition and 3 deletions.
  1. +1 −3 Library/Formula/nginx.rb
View
4 Library/Formula/nginx.rb
@@ -90,14 +90,12 @@ def startup_plist
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
- <true/>
+ <false/>
<key>UserName</key>
<string>#{`whoami`.chomp}</string>
<key>ProgramArguments</key>
<array>
<string>#{HOMEBREW_PREFIX}/sbin/nginx</string>
- <string>-g</string>
- <string>daemon off;</string>
</array>
<key>WorkingDirectory</key>
<string>#{HOMEBREW_PREFIX}</string>
Please sign in to comment.
Something went wrong with that request. Please try again.