[SERVER-7708] RPMs should automatically create /var/run/mongodb to store the PID Created: 19/Nov/12  Updated: 11/Jul/16  Resolved: 13/Oct/13

Status: Closed
Project: Core Server
Component/s: Packaging
Affects Version/s: None
Fix Version/s: 2.5.4

Type: Improvement Priority: Major - P3
Reporter: Mark porter Assignee: Ernie Hershey
Resolution: Done Votes: 1
Labels: pull-request
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

All Linux Platforms


Issue Links:
Depends
is depended on by SERVER-11023 New rpm packages init script is unabl... Closed
Duplicate
is duplicated by SERVER-11023 New rpm packages init script is unabl... Closed
Related
related to SERVER-14679 (CentOS 7/RHEL 7) init.d script shoul... Closed
is related to SERVER-4808 Provide repo downloads of older versi... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

/var/run/mongodb

is not created on install.

You must create

/var/run/mongodb

so that the PID may be stored.

Therefore, one must manually

chown mongod:mongod /var/run/mongodb

Most package installs will store a PID in

/var/run

.

Therefore, the PID file needs to be created and the correct ownership put on the file.



 Comments   
Comment by auto [ 12/Oct/13 ]

Author:

{u'username': u'ehershey', u'name': u'Ernie Hershey', u'email': u'ernie.hershey@10gen.com'}

Message: SERVER-7708 Use pid file under /var/run/mongodb in rpm
Branch: master
https://github.com/mongodb/mongo/commit/ba2dde72a07371d8500c69ee98ef4c82399607c2

Comment by Ernie Hershey [ 15/Apr/13 ]

Also we set the pid file location in the mongod.conf we install, so we should probably support running with that configuration. I think this would be a good change to do more of what OS's expect us to with packages.

Comment by Mark porter [ 19/Nov/12 ]

I don't believe it does. If you want to install multiple MongoDB instances on the one box through a package system like apt or yum, then you have to have separate start-up scripts and separate config files. The pid file comes from config file so it does not limit to one instance.

WRT simply installing the binaries, the pid file proposal doesn't apply.

Comment by Scott Hernandez (Inactive) [ 19/Nov/12 ]

This implies you would only have one instance running at a time; probably not a limitation we want to suggest/create.

Generated at Thu Feb 08 03:15:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.