diff options
author | Daniel Moody <daniel.moody@mongodb.com> | 2023-02-23 15:33:07 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-03-20 20:04:56 +0000 |
commit | 98256d50948b56441bda6dd908169fee52675f0a (patch) | |
tree | d7727b5f798b8ee09aa1ec6576d1d41d85f845e4 | |
parent | e41dfbe8bf58bc8489defe42dfb72a0512f5c2fe (diff) | |
download | mongo-98256d50948b56441bda6dd908169fee52675f0a.tar.gz |
SERVER-74156 add macos plist file for use with homebrew installs
(cherry picked from commit df91b297e17b6dfc47da1cd954ebc4fbefb53cc9)
-rw-r--r-- | etc/macos_mongodb.plist | 34 | ||||
-rw-r--r-- | src/mongo/SConscript | 10 |
2 files changed, 44 insertions, 0 deletions
diff --git a/etc/macos_mongodb.plist b/etc/macos_mongodb.plist new file mode 100644 index 00000000000..e57e7d9be3e --- /dev/null +++ b/etc/macos_mongodb.plist @@ -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> diff --git a/src/mongo/SConscript b/src/mongo/SConscript index a63000a7ee7..5fe441b0195 100644 --- a/src/mongo/SConscript +++ b/src/mongo/SConscript @@ -309,3 +309,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', + ) |