Run command on startup / login (Mac OS X)
Posted
by
Wolfy87
on Super User
See other posts from Super User
or by Wolfy87
Published on 2011-01-06T11:24:35Z
Indexed on
2011/01/06
11:55 UTC
Read the original article
Hit count: 212
I was not sure if this was for StackOverflow or here, I settled for here. I was wondering which file I should place this bash command in so it will be run on startup.
# Start the MongoDB server
/Applications/MongoDB/bin/mongod --dbpath /usr/local/mongo/data --fork --logpath /usr/local/mongo/log
I have been scouring the net and think it is between ~/.bashrc
, ~/profile
, /etc/bashrc
, /etc/profile
or ~/.bash_profile
. Although I have tried these and they seem to run on terminal startup not Mac startup. Am I missing a file here?
Thanks for any help you can give.
© Super User or respective owner