Project

General

Profile

Actions

Bug #8700

closed

EL7 mongod.service typo in unit file

Added by Florian Koch over 9 years ago. Updated almost 6 years ago.

Status:
Duplicate
Priority:
High
Assignee:
-
Category:
Installer
Target version:
Difficulty:
trivial
Triaged:
Fixed in Releases:
Found in Releases:

Description

Hi,

i version 2.0.0 there is a typo in the MongoDB unit

This is the installed unit, the PIDFile Path is incorrect , this causes the installer to fail.

[Unit]
Description=High-performance, schema-free document-oriented database
After=syslog.target network.target

[Service]
Type=forking
User=mongodb
PIDFile=/var/run/mongodb/mongod.pid
EnvironmentFile=/etc/sysconfig/mongod
ExecStart=/usr/bin/mongod $OPTIONS run
PrivateTmp=true
LimitNOFILE=64000

[Install]
WantedBy=multi-user.target

the correct unit changing mongod.pid to mongodb.pid and it works

[Unit]
Description=High-performance, schema-free document-oriented database
After=syslog.target network.target

[Service]
Type=forking
User=mongodb
PIDFile=/var/run/mongodb/mongodb.pid
EnvironmentFile=/etc/sysconfig/mongod
ExecStart=/usr/bin/mongod $OPTIONS run
PrivateTmp=true
LimitNOFILE=64000

[Install]
WantedBy=multi-user.target


Related issues 1 (0 open1 closed)

Is duplicate of Katello - Bug #8478: MongoDB fails to start with a RHEL 7 systemClosedIvan Necas11/21/2014Actions
Actions

Also available in: Atom PDF