I tried to run mongo db service but it won't start. I get the message
Job for mongod.service failed. See "systemctl status mongod.service" and "journalctl -xn" for details. I googled and found that issue was with the configuration file which points pidfilepath to/var/run/mongodb/mongod.pid but it seems that I have no such file.
I also directly ran mongod from terminal which seems to start database server (after making directory /data/db) as root but cannot run it as normal user.
I want to run the server from service, how should my pid file be? I tried to locate it but it seems to be nowhere. Also I am running on OpenSuse 13.2.
UPDATE:: I searched for couple of pid files in my system and they all contain numbers perhaps which are mapped into PID. What is the default PID for mongodb?
UPDATE:: I again googled and found that pid is 1036 so I created a file mongod.pid with the value 1036 and changed the file ownership and file permission and it is working for now.