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 19:56:32 +0000 |
commit | 3d5ad7de3dba072ae794d3b16aa2730849eb2d87 (patch) | |
tree | 8dcdb307ee468fa102df0e2a2812c66207495427 | |
parent | 34023f77e285f99dfd92388a05c142855d6bbd4c (diff) | |
download | mongo-3d5ad7de3dba072ae794d3b16aa2730849eb2d87.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 | 13 |
2 files changed, 47 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 d408f020e36..b3a3ed0ced7 100644 --- a/src/mongo/SConscript +++ b/src/mongo/SConscript @@ -830,6 +830,19 @@ if hygienic: AIB_ROLE='base', ) +if env.TargetOSIs('darwin', 'macOS'): + if hygienic: + env.AutoInstall( + target='$PREFIX', + source=[ + env.File('#/etc/macos_mongodb.plist'), + ], + AIB_COMPONENT='common', + AIB_ROLE='base', + ) + else: + env.Install("$DESTDIR", env.File('#/etc/macos_mongodb.plist'),) + # Build a set of directories containing module banners, and use that # to build a --transform option for each directory so that the files # are tar'ed up to the proper location. |