Skip to content

Commit a7b69da

Browse files
coudotdavidcoutadeur
authored andcommitted
Possibility to configure systemd service names
1 parent ba881a9 commit a7b69da

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

slapd-cli

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ FD_LIMIT="2048" # Max file descriptor
9090
DEBUG_LEVEL="256" # Debug loglevel
9191
UMASK="umask"
9292
MASK="0027"
93+
SYSTEMD_SERVICE_NAME=slapd-ltb
94+
SYSTEMD_LLOAD_SERVICE_NAME=lload-ltb
9395

9496
SLAPD_VERSION="2.5" # OpenLDAP version: major.minor (don't include .patch)
9597
OS=`uname -s` # To adapt message printing
@@ -239,8 +241,6 @@ if [ $PPID -ne 1 ] && \
239241
# directly (PPID>1) but runs it through /etc/init.d/slapd
240242
[ -z "$INVOCATION_ID" ] ;
241243
then
242-
SYSTEMD_SERVICE_NAME=slapd-ltb
243-
SYSTEMD_LLOAD_SERVICE_NAME=lload-ltb
244244
_use_systemctl=1
245245
fi
246246

slapd-cli.conf

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ BACKUP_COMPRESS_BIN="" # /bin/gzip, /bin/bzip2, ...
4848
BACKUP_UNCOMPRESS_BIN="" # /bin/gunzip, /bin/bunzip2, ...
4949
UMASK="umask"
5050
MASK="0027"
51+
SYSTEMD_SERVICE_NAME=slapd-ltb
52+
SYSTEMD_LLOAD_SERVICE_NAME=lload-ltb
5153

5254
# Data provisioning
5355
DATA_TEMPLATE_FILE="data-template-${SLAPD_VERSION}.ldif"

0 commit comments

Comments
 (0)