mongod fork vs nohup
Posted
by
Daniel Kitachewsky
on Server Fault
See other posts from Server Fault
or by Daniel Kitachewsky
Published on 2012-07-06T14:55:40Z
Indexed on
2012/07/06
15:17 UTC
Read the original article
Hit count: 258
I'm currently writing process management software. One package we use is mongo.
Is there any difference between launching mongo with
mongod --fork --logpath=/my/path/mongo.log
and
nohup mongod >> /my/path/mongo.log 2>&1 < /dev/null &
?
My first thought was that --fork could spawn more processes and/or threads, and I was suggested that --fork could be useful for changing the effective user (downgrading privileges). But we run all under the same user (process manager and mongod), so is there any other difference?
Thank you
© Server Fault or respective owner