[Bug 1646146] Re: apacheds.service script not running from systemctl correctly
2.0.0~M15-4 on Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-45-generic x86_64) still suffers from this bug. None of the suggested Solutions here worked for me. The apache-directory-server package should be fixed or removed from Ubuntu. -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1646146] Re: apacheds.service script not running from systemctl correctly
The attachment "Patch for apacheds.service" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team. [This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.] ** Tags added: patch -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1646146] Re: apacheds.service script not running from systemctl correctly
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}/" ** Patch added: "Patch for apacheds.service" https://bugs.launchpad.net/ubuntu/+source/apache-directory-server/+bug/1646146/+attachment/4930094/+files/apacheds.patch -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1646146] Re: apacheds.service script not running from systemctl correctly
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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1646146] Re: apacheds.service script not running from systemctl correctly
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: apache-directory-server (Ubuntu) Status: New => Confirmed -- 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 ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs