mirror of https://github.com/mongodb/mongo
SERVER-74156 add macos plist file for use with homebrew installs
This commit is contained in:
parent
4d11243256
commit
df91b297e1
|
|
@ -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>
|
||||
|
|
@ -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',
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in New Issue