From fc13f4db8b3d3cb80fa151e46dbb56dd0646e862 Mon Sep 17 00:00:00 2001 From: Andy Ning Date: Thu, 3 Mar 2022 11:02:53 -0500 Subject: [PATCH] Change openldap pid and args file location for Debian Change openldap pid and args file location from /var/run/slapd to /run so it's aligned with CentOS. This will enable openldap to be managed by SM. Test Plan for Debian: PASS: package build, image build PASS: system boostrap PASS: controller unlock, open-ldap service state in SM is enabled-active enabled-active Story: 2009101 Task: 44664 Signed-off-by: Andy Ning Change-Id: I108a63d5b829b66ef24516f9e2c33fde0288f9a8 --- ...ange-pid-file-and-args-file-location.patch | 29 +++++++++++++++++++ ldap/openldap/debian/deb_patches/series | 1 + 2 files changed, 30 insertions(+) create mode 100644 ldap/openldap/debian/deb_patches/0001-Change-pid-file-and-args-file-location.patch diff --git a/ldap/openldap/debian/deb_patches/0001-Change-pid-file-and-args-file-location.patch b/ldap/openldap/debian/deb_patches/0001-Change-pid-file-and-args-file-location.patch new file mode 100644 index 000000000..0107afb2a --- /dev/null +++ b/ldap/openldap/debian/deb_patches/0001-Change-pid-file-and-args-file-location.patch @@ -0,0 +1,29 @@ +From e5e7ea54dbb3f13465fb38ea462f460053427e8e Mon Sep 17 00:00:00 2001 +From: Andy Ning +Date: Wed, 2 Mar 2022 19:19:42 +0000 +Subject: [PATCH] Change pid file and args file location + +Signed-off-by: Andy Ning +--- + debian/slapd.init.ldif | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/debian/slapd.init.ldif b/debian/slapd.init.ldif +index eacb116..7b5392e 100644 +--- a/debian/slapd.init.ldif ++++ b/debian/slapd.init.ldif +@@ -4,9 +4,9 @@ objectClass: olcGlobal + cn: config + # Where the pid file is put. The init.d script + # will not stop the server if you change this. +-olcPidFile: /var/run/slapd/slapd.pid ++olcPidFile: /run/slapd.pid + # List of arguments that were passed to the server +-olcArgsFile: /var/run/slapd/slapd.args ++olcArgsFile: /run/slapd.args + # Read slapd-config(5) for possible values + olcLogLevel: none + # The tool-threads parameter sets the actual amount of cpu's that is used +-- +2.30.2 + diff --git a/ldap/openldap/debian/deb_patches/series b/ldap/openldap/debian/deb_patches/series index e00dc49c9..5f6f82599 100644 --- a/ldap/openldap/debian/deb_patches/series +++ b/ldap/openldap/debian/deb_patches/series @@ -1 +1,2 @@ debian-disable-unit-tests.patch +0001-Change-pid-file-and-args-file-location.patch