Since the official fix is not out yet, I would like to give more detail on the 
workaround.
After investigation. 
There two problems:

1. In the /lib/systemd/system/apacheds.service 
ExecStart=${JAVA_HOME}/bin/java
The ExecStart does not accept environment variable as part of the path to the 
executable. So replace ${JAVA_HOME} with /usr/bin/java or 
/usr/lib/jvm/default-java

2. In the /etc/default/apacheds
ADS_INSTANCES="$ADS_HOME/instances"
Since variable expansion is not performed inside the strings for environment 
variables, replace $ADS_HOME with /usr/share/apacheds


** Attachment added: "apacheds_service_patch.zip"
   
https://bugs.launchpad.net/ubuntu/+source/apache-directory-server/+bug/1646146/+attachment/4836807/+files/apacheds_service_patch.zip

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1646146

Title:
  apacheds.service script not running from systemctl correctly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apache-directory-server/+bug/1646146/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to