mongodbmongoosebackend

Environment variable MONGODB_CONFIG_OVERRIDE_NOFORK == 1, overriding \"processManagement.fork\" to false"


I tried convert standalone MongoDB to replica set with only one replica, it was required for change streams on my backend. I found error, which don't descripted in any site in google, so here is error message: 'Environment variable MONGODB_CONFIG_OVERRIDE_NOFORK == 1, overriding "processManagement.fork" to false"'. Anybody who knows how solve it?

I tried search environment variable in linux -- not found, i tried set variable with descripted name to environment in linux -- not works, and searched possible enviroment variables


Solution

  • I found solution, and would like to share this solution by infromation in this topic https://www.alibabacloud.com/blog/how-to-set-environment-variables-in-a-systemd-service_598533

    here /usr/lib/systemd/system/mongod.service i needed delete string MONGODB_CONFIG_OVERRIDE_NOFORK=1