SERVER-74156 add macos plist file for use with homebrew installs

This commit is contained in:
Daniel Moody 2023-02-23 15:33:07 +00:00 committed by Evergreen Agent
parent 4d11243256
commit df91b297e1
2 changed files with 44 additions and 0 deletions

34
etc/macos_mongodb.plist Normal file
View File

@ -0,0 +1,34 @@
<?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>Label</key>
<string>#{plist_name}</string>
<key>ProgramArguments</key>
<array>
<string>#{opt_bin}/mongod</string>
<string>--config</string>
<string>#{etc}/mongod.conf</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<false/>
<key>WorkingDirectory</key>
<string>#{HOMEBREW_PREFIX}</string>
<key>StandardErrorPath</key>
<string>#{var}/log/mongodb/output.log</string>
<key>StandardOutPath</key>
<string>#{var}/log/mongodb/output.log</string>
<key>HardResourceLimits</key>
<dict>
<key>NumberOfFiles</key>
<integer>64000</integer>
</dict>
<key>SoftResourceLimits</key>
<dict>
<key>NumberOfFiles</key>
<integer>64000</integer>
</dict>
</dict>
</plist>

View File

@ -279,3 +279,13 @@ env.AutoInstall(
AIB_COMPONENTS_EXTRA=['dist', 'dist-test'],
AIB_ROLE='base',
)
if env.TargetOSIs('darwin', 'macOS'):
env.AutoInstall(
target='$PREFIX',
source=[
env.File('#/etc/macos_mongodb.plist'),
],
AIB_COMPONENT='common',
AIB_ROLE='base',
)