-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 2.6.3, 2.7.0, 2.7.1, 2.7.2, 2.7.3
-
Component/s: Packaging
-
Environment:CentOS 7, RHEL 7
-
Fully Compatible
-
Linux
-
The initscript of the RPM packages does not check wether the directory the pidfile is written to exists.
This makes it impossible to start mongod via the initscript on CentOS 7 at last, and presumably on RHEL 7, too, as the directory /var/run/mongod does not exist on system startup. The contents of /var/run seem to be deleted over a reboot, so creating the directory manually or via RPM does not help.
The file mongo/rpm/init.d-mongod needs to be updated accordingly.
I have already done that, a pull request will follow.
- is depended on by
-
SERVER-7285 Support systemd in future compatible distributions
- Closed
- is duplicated by
-
SERVER-15724 Cannot write pid file to /var/run/mongodb/mongod.pid: No such file or directory
- Closed
-
SERVER-17462 Server start error in SUSE Enterprise 12
- Closed
-
SERVER-22023 CLONE - Server start error in SUSE Enterprise 12
- Closed
- is related to
-
SERVER-7708 RPMs should automatically create /var/run/mongodb to store the PID
- Closed
- related to
-
SERVER-16721 Allow init script PIDFILEPATH to be configured via sysconfig
- Closed
- links to