Mongo & IPv6 binding
André-John Mas
andrejohn.mas at gmail.com
Tue Feb 14 17:03:23 UTC 2023
Hi,
I noticed today that the MacPorts version of mongodb does not bind to
the IPv6 ::1 port and only binds to the IPv4 127.0.0.1 localhost.
Would it be possible to update things to it does bind to IPv6 ::1 too.
It appears to be a question of adding '--ipv6' to the CLI is the LaunchDaemon
CLI file.
I did a local change, such that:
<?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>org.macports.mongodb</string>
<key>ProgramArguments</key>
<array>
<string>/opt/local/bin/daemondo</string>
<string>--label=mongodb</string>
<string>--start-cmd</string>
<string>sudo</string>
<string>-u</string>
<string>_mongo</string>
<string>/opt/local/bin/mongod</string>
<string>--ipv6</string>
<string>--dbpath</string>
<string>/opt/local/var/db/mongodb</string>
<string>--logpath</string>
<string>/opt/local/var/log/mongodb/mongodb.log</string>
<string>--logappend</string>
<string>;</string>
<string>--pid=exec</string>
</array>
<key>Disabled</key><true/>
<key>KeepAlive</key><true/>
</dict>
</plist>
This works for me.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20230214/0359f58e/attachment.htm>
More information about the macports-users
mailing list