launchd system permissions
I am launching PM2 using launchd. I register it like:
launchctl bootstrap system /Library/LaunchDaemons/pm2.root.list
After bootup, PM2 is setup to run a node.js app as root user. "pm2 list" confirms that indeed it is running as root. But the app fails to contact mongodb with a timeout! The app can download a homepage from the internet, so it is not because the app is missing access to the internet. If I login as root and run "pm2 restart node_app_id", the app is now able to contact atlas mongodb.
Does the "system" parameter when registering PM2 with launchd port-restrict my app somehow or what could be the issue here?
Thanks in advance
Mac mini (M1, 2020)