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 <andy.ning@windriver.com>
Change-Id: I108a63d5b829b66ef24516f9e2c33fde0288f9a8
This commit is contained in:
Andy Ning 2022-03-03 11:02:53 -05:00
parent c66d407614
commit fc13f4db8b
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,29 @@
From e5e7ea54dbb3f13465fb38ea462f460053427e8e Mon Sep 17 00:00:00 2001
From: Andy Ning <andy.ning@windriver.com>
Date: Wed, 2 Mar 2022 19:19:42 +0000
Subject: [PATCH] Change pid file and args file location
Signed-off-by: Andy Ning <andy.ning@windriver.com>
---
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

View File

@ -1 +1,2 @@
debian-disable-unit-tests.patch
0001-Change-pid-file-and-args-file-location.patch