[SERVER-28035] Debian Jessie systemd service not handled correctly Created: 17/Feb/17 Updated: 05/Dec/22 Resolved: 16/Nov/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Packaging |
| Affects Version/s: | 3.2.9, 3.4.2 |
| Fix Version/s: | 4.1 Desired |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | franck cauvet | Assignee: | [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive) |
| Resolution: | Won't Do | Votes: | 1 |
| Labels: | sdp-backlog-purge | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||
| Issue Links: |
|
||||||||||
| Assigned Teams: |
Server Development Platform
|
||||||||||
| Operating System: | ALL | ||||||||||
| Steps To Reproduce: | Installation :
See attachment file install.txt. Deinstallation : (whith mongo manualluy enabled) :
See attachement file deinstall.txt |
||||||||||
| Participants: | |||||||||||
| Description |
|
Hi, On a Debian Jessie fresh install, mongodb service is not enabled with systemd, thus it does not start after installation or boot time.
The package mongodb-org-server comes with the mongod.service file :
But the postinst script of the package does not call for systemctl to enable this service :
It only tests for the existence of sysvinit script, not for the systemd one. You might consider adding the same thing for systemd in the postinst script, like :
Things are getting worse while removing mongodb-org-server package, the mongod service is not stopped while it is removed :
The prerm script of the package is lacking the stop action for systemd and manage only sysvinit script :
You might add something like this to stop the service and disable it before removing the file /lib/systemd/system/mongod.service (which actually do a broken link on the sytem) :
And, actually the postrm script seems to be fine. I have seen this issue on 3.2.9 version and 3.4.2 version of mongodb-org-server package on Debian Jessie. It should affect every version between them. Regards. |
| Comments |
| Comment by Iryna Zhuravlova [ 16/Nov/22 ] |
|
After a careful backlog refinement, the team decided to close this ticket because of its low priority and limited resource capacity. If you believe that this ticket requires additional attention from the team and should be re-opened, feel free to change the status to "Needs Scheduling" and ping me or @alexander.neben |
| Comment by franck cauvet [ 15/Mar/17 ] |
|
Hi Mark, Regards. |
| Comment by Mark Agarunov [ 14/Mar/17 ] |
|
Hello fcauvet, We've managed to reproduce the behavior you've described and are investigating further. If you would like updates on the progress, please continue to watch this issue. Thanks, |
| Comment by Mark Agarunov [ 17/Feb/17 ] |
|
Hello fcauvet, Thank you for the report. We are investigating this issue and will update the ticket with any new information as it becomes available. Thanks, |