- 
    Type:
Bug
 - 
    Resolution: Duplicate
 - 
    Priority:
Major - P3
 - 
    None
 - 
    Affects Version/s: 3.0.8
 - 
    Component/s: Packaging
 - 
    None
 
- 
        ALL
 - 
        
 - 
        None
 
- 
        None
 - 
        None
 - 
        None
 - 
        None
 - 
        None
 - 
        None
 
The same issue related to creation of /var/run/mongodb/ folder that is marked as fixed on CentOS/RHEL7 and SUSE12, but not fixed on OpenSUSE (42.1).
Error from mongod.log
I CONTROL  ERROR: Cannot write pid file to /var/run/mongodb/mongod.pid: No such file or directory
This is due to missing configuration file that creates a folder in the temporary filesystem /var/run upon every boot.
Steps to fix: On OpenSUSE 12.2 and higher,
sudo sh -c 'echo "d /var/run/mongodb 0755 mongod mongod" > /usr/lib/tmpfiles.d/mongodb.conf'
sudo systemd-tmpfiles --create mongodb.conf
sudo service mongod start
- depends on
 - 
                    
SERVER-7285 Support systemd in future compatible distributions
-         
 - Closed
 
 -         
 
- duplicates
 - 
                    
SERVER-18162 Fail to start with non-existing /var/run/mongodb/
-         
 - Closed
 
 -