```
{"t":\{"$date":"2023-04-17T13:50:46.795+02:00"},"s":"I", "c":"CONTROL", "id":23330, "ctx":"main","msg":"ERROR: Cannot write pid file to {path_string}: {errAndStr_second}","attr":{"path_string":"/var/run/mongodb/mongod.pid","errAndStr_second":"No such file or directory"}}
```
mongod.conf
```
- mongod.conf
- for documentation of all options, see:
- http://docs.mongodb.org/manual/reference/configuration-options/
- where to write logging data.
systemLog:
destination: file
logAppend: true
path: /var/log/mongodb/mongod.log
- Where and how to store data.
storage:
dbPath: /var/lib/mongo
journal:
enabled: true - engine:
- wiredTiger:
- how the process runs
processManagement:
fork: true # fork and run in background
pidFilePath: /var/run/mongodb/mongod.pid # location of pidfile
timeZoneInfo: /usr/share/zoneinfo
- network interfaces
net:
port: 27017
bindIpAll: true
security:
authorization:
enabled
keyFile: /etc/ssl/mongo_replica.key
#operationProfiling:
replication:
replSetName: xxxx
#sharding:
-
- Enterprise-Only Options
#auditLog:
#snmp:
```
OS: CentOS 7
- is related to
-
SERVER-74345 mongodb-org-server 4.4.19, 5.0.15, 6.0.5 not starting after upgrading from older version (Debian, RPM Packages)
- Closed
-
SERVER-74845 Create mechanism to ignore ignore fork option with systemd
- Closed