[SERVER-20075] Debian init script not setting correct permissions on PIDFILEPATH Created: 21/Aug/15 Updated: 14/Apr/16 Resolved: 21/Aug/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Packaging |
| Affects Version/s: | 3.0.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Petr Malik | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
> lsb_release -a > mongod --version |
||
| Issue Links: |
|
||||||||
| Operating System: | Linux | ||||||||
| Steps To Reproduce: | 1. Create a configuration file.
2. Start mongod as a service. 3. Check the server log. 4. Check the PID permissions. |
||||||||
| Participants: | |||||||||
| Description |
|
Debian init script does not ensure proper ownership/permissions on the PID file. The created PID file is not writable by the $DAEMONUSER (mongodb) causing the server to fail to start. Is it possible to ensure the PID location is writable before starting the service - like you do in the Ubuntu upstart script at lines 23-24: https://github.com/mongodb/mongo/blob/f7675b0a306764d8a435a623b4af0b5bd63180d4/debian/mongod.upstart |
| Comments |
| Comment by Ramon Fernandez Marina [ 21/Aug/15 ] |
|
This is a duplicate of We've opened Regards, |