SERVER-76179 Add RuntimeDirectory to mongod.service for RPM

This commit is contained in:
Alexander Neben 2023-05-04 00:03:45 +00:00 committed by Evergreen Agent
parent 98a7aa94f7
commit e968d9507a
2 changed files with 2 additions and 0 deletions

View File

@ -332,6 +332,7 @@ def test_install_is_complete(test_args: TestArgs):
required_dirs = [
pathlib.Path('/run/mongodb'),
pathlib.Path('/var/run/mongodb'),
pathlib.Path(test_args['mongo_work_dir']),
] # type: List[pathlib.Path]

View File

@ -11,6 +11,7 @@ Environment="OPTIONS=-f /etc/mongod.conf"
Environment="MONGODB_CONFIG_OVERRIDE_NOFORK=1"
EnvironmentFile=-/etc/sysconfig/mongod
ExecStart=/usr/bin/mongod $OPTIONS
RuntimeDirectory=mongodb
# file size
LimitFSIZE=infinity
# cpu time