[SERVER-37368] systemctl start mongod fails when the RPM is installed with --prefix Created: 28/Sep/18  Updated: 27/Oct/23  Resolved: 01/Jun/22

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

Type: Bug Priority: Major - P3
Reporter: Vick Mena (Inactive) Assignee: Alex Neben
Resolution: Gone away Votes: 0
Labels: build-planned
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Steps To Reproduce:
  1. Fresh Centos75 bento box (bento/centos-7.5)
  2. Download the rpm from our downloads center
  3. sudo rpm --prefix /opt/mdb package.rpm
  4. sudo systemctl start mongod
Sprint: Build 2018-10-22, Build 2018-11-05
Participants:
Case:
Story Points: 5

 Description   

The MongoDB RPM is relocatable according

rpm -qvip

However it appears the included mongod.service does not reflect a relocation and still expects the executable at /usr/bin/mongod. The service then fails to start.

Editing mongod.service and updating ExecStart fixes the issue


Generated at Thu Feb 08 04:45:47 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.