diff options
author | Mathew Robinson <chasinglogic@gmail.com> | 2018-03-19 11:27:51 -0400 |
---|---|---|
committer | Mathew Robinson <chasinglogic@gmail.com> | 2018-03-29 09:34:32 -0400 |
commit | abc831b3b8c91b2f1d47777abcb8d205a987e036 (patch) | |
tree | f0f1679fadcfb11383f9269a2ee780e18862bf12 /rpm | |
parent | 9413a6067d38d92f9f3978ffefdef4a60dc2bb7c (diff) | |
download | mongo-abc831b3b8c91b2f1d47777abcb8d205a987e036.tar.gz |
SERVER-33320 Run systemctl daemon-reload on upgrade
Diffstat (limited to 'rpm')
-rw-r--r-- | rpm/mongodb-enterprise-unstable.spec | 5 | ||||
-rw-r--r-- | rpm/mongodb-enterprise.spec | 4 | ||||
-rw-r--r-- | rpm/mongodb-org-unstable.spec | 4 | ||||
-rw-r--r-- | rpm/mongodb-org.spec | 4 |
4 files changed, 17 insertions, 0 deletions
diff --git a/rpm/mongodb-enterprise-unstable.spec b/rpm/mongodb-enterprise-unstable.spec index 16b32774eeb..90a974fa79e 100644 --- a/rpm/mongodb-enterprise-unstable.spec +++ b/rpm/mongodb-enterprise-unstable.spec @@ -194,6 +194,11 @@ if test $1 = 1 then /usr/bin/systemctl enable mongod fi +if test $1 = 2 +then + /usr/bin/systemctl daemon-reload +fi + %preun server if test $1 = 0 diff --git a/rpm/mongodb-enterprise.spec b/rpm/mongodb-enterprise.spec index c4476280cf4..6e5a838ac63 100644 --- a/rpm/mongodb-enterprise.spec +++ b/rpm/mongodb-enterprise.spec @@ -202,6 +202,10 @@ if test $1 = 1 then /usr/bin/systemctl enable mongod fi +if test $1 = 2 +then + /usr/bin/systemctl daemon-reload +fi %preun server if test $1 = 0 diff --git a/rpm/mongodb-org-unstable.spec b/rpm/mongodb-org-unstable.spec index 7903d7067ab..fe5b3e7c93f 100644 --- a/rpm/mongodb-org-unstable.spec +++ b/rpm/mongodb-org-unstable.spec @@ -192,6 +192,10 @@ if test $1 = 1 then /usr/bin/systemctl enable mongod fi +if test $1 = 2 +then + /usr/bin/systemctl daemon-reload +fi %preun server if test $1 = 0 diff --git a/rpm/mongodb-org.spec b/rpm/mongodb-org.spec index 4bc3d6f4e48..b32f09e7457 100644 --- a/rpm/mongodb-org.spec +++ b/rpm/mongodb-org.spec @@ -202,6 +202,10 @@ if test $1 = 1 then /usr/bin/systemctl enable mongod fi +if test $1 = 2 +then + /usr/bin/systemctl daemon-reload +fi %preun server if test $1 = 0 |