From e968d9507a2d038004de32250ea62edaa627d39e Mon Sep 17 00:00:00 2001 From: Alexander Neben Date: Thu, 4 May 2023 00:03:45 +0000 Subject: [PATCH] SERVER-76179 Add RuntimeDirectory to mongod.service for RPM --- buildscripts/package_test_internal.py | 1 + rpm/mongod.service | 1 + 2 files changed, 2 insertions(+) diff --git a/buildscripts/package_test_internal.py b/buildscripts/package_test_internal.py index b923a0e6f77..c682f56e2a6 100644 --- a/buildscripts/package_test_internal.py +++ b/buildscripts/package_test_internal.py @@ -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] diff --git a/rpm/mongod.service b/rpm/mongod.service index 81059df8343..8d4a4c4142c 100644 --- a/rpm/mongod.service +++ b/rpm/mongod.service @@ -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