My fix is little different. I just rewrited ExecStart with '/bin/sh -c':
ExecStart=/bin/sh -c "${JAVA_HOME}/bin/java ${JAVA_OPTS} \ -Dapacheds.controls=${ADS_CONTROLS} \ -Dapacheds.extendedOperations=${ADS_EXTENDED_OPERATIONS} \ -Dlog4j.configuration=file:${ADS_INSTANCES}/${ADS_INSTANCE}/conf/log4j.properties \ -Dapacheds.log.dir=${ADS_INSTANCES}/${ADS_INSTANCE}/log \ -cp '${ADS_HOME}/lib/*' \ org.apache.directory.server.UberjarMain \ ${ADS_INSTANCES}/${ADS_INSTANCE}/"
My fix is little different. I just rewrited ExecStart with '/bin/sh -c':
ExecStart=/bin/sh -c "${JAVA_ HOME}/bin/ java ${JAVA_OPTS} \
-Dapacheds .controls= ${ADS_CONTROLS} \
-Dapacheds .extendedOperat ions=${ ADS_EXTENDED_ OPERATIONS} \
-Dlog4j. configuration= file:${ ADS_INSTANCES} /${ADS_ INSTANCE} /conf/log4j. properties \
-Dapacheds .log.dir= ${ADS_INSTANCES }/${ADS_ INSTANCE} /log \
org. apache. directory. server. UberjarMain \
${ ADS_INSTANCES} /${ADS_ INSTANCE} /"
-cp '${ADS_HOME}/lib/*' \