| 1 |
[Unit] |
| 2 |
Description=Apache Directory Server |
| 3 |
After=network.target |
| 4 |
ConditionPathExists=|/etc/apacheds/config.ldif |
| 5 |
ConditionPathIsDirectory=|/etc/apacheds/ou=config |
| 6 |
|
| 7 |
[Service] |
| 8 |
Type=simple |
| 9 |
User=apacheds |
| 10 |
Group=apacheds |
| 11 |
EnvironmentFile=/etc/default/apacheds |
| 12 |
ExecStart=/bin/sh -c "exec \ |
| 13 |
${JAVA_HOME}/bin/java ${JAVA_OPTS} \ |
| 14 |
-Dapacheds.controls=${ADS_CONTROLS} \ |
| 15 |
-Dapacheds.extendedOperations=${ADS_EXTENDED_OPERATIONS} \ |
| 16 |
-Dlog4j.configuration=file:${ADS_INSTANCES}/${ADS_INSTANCE}/conf/log4j.properties \ |
| 17 |
-Dapacheds.log.dir=${ADS_INSTANCES}/${ADS_INSTANCE}/log \ |
| 18 |
-cp '${ADS_HOME}/lib/*' \ |
| 19 |
org.apache.directory.server.UberjarMain \ |
| 20 |
${ADS_INSTANCES}/${ADS_INSTANCE}/" |
| 21 |
PrivateTmp=true |
| 22 |
|
| 23 |
[Install] |
| 24 |
WantedBy=multi-user.target |