This repository has been archived by the owner. It is now read-only.
Permalink
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...
Stephen Larew authored and adamv committed Jun 20, 2012
1 parent 768ee93 commit d34b2b10bbe03bf0dceafb0d54adb7c44b68376a
Showing with 1 addition and 3 deletions.
  1. +1 −3 Library/Formula/nginx.rb
View
@@ -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>

0 comments on commit d34b2b1

Please sign in to comment.