https://bugs.openldap.org/show_bug.cgi?id=10512
Issue ID: 10512 Summary: systemd exec - update to absolute path Product: OpenLDAP Version: 2.6.10 Hardware: All OS: Linux Status: UNCONFIRMED Keywords: needs_review Severity: normal Priority: --- Component: slapd Assignee: bugs@openldap.org Reporter: daniel@iamniz.co.uk Target Milestone: ---
Could the ExecStart option in the systemd unit file be updated to use a absolute path?
ERROR:systemctl: slapd.service: Exec is not an absolute path: ExecStart=sh -c 'mkdir -p /run/slapd; \ chown "$SLAPD_USER":"$SLAPD_GROUP" /run/slapd; \ [ -d "$SLAPD_CONF" ] && confflag=-F || confflag=-f; \ exec /usr/sbin/slapd -d0 \ ${SLAPD_SERVICES:+-h "$SLAPD_SERVICES"} \ ${SLAPD_USER:+-u "$SLAPD_USER"} \ ${SLAPD_GROUP:+-g "$SLAPD_GROUP"} \ ${SLAPD_CONF:+$confflag "$SLAPD_CONF"} \ $SLAPD_OPTIONS'
ERROR:systemctl: slapd.service: Exec command does not exist: (ExecStart) sh ERROR:systemctl: slapd.service: but this does exist: /usr/bin/sh ERROR:systemctl: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ERROR:systemctl: The SystemD ExecXY commands must always be absolute paths by definition. ERROR:systemctl: Oops, 1 executable paths were not found in the current environment. Refusing. ERROR:systemctl: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Regards, Dan Nisbet
https://bugs.openldap.org/show_bug.cgi?id=10512
--- Comment #1 from andreas@canonical.com andreas@canonical.com --- This should be marked invalid. The pasted snippet comes from debian/ubuntu modifications, and the shown systemctl error comes from a systemd variant/clone.
https://bugs.openldap.org/show_bug.cgi?id=10512
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID
--- Comment #2 from Howard Chu hyc@openldap.org --- As noted in the previous comment, this is not an OpenLDAP bug. The file in question is not part of the OpenLDAP project.
https://bugs.openldap.org/show_bug.cgi?id=10512
--- Comment #3 from daniel@iamniz.co.uk --- Yes, apologies - feel free to close! -- Dan
https://bugs.openldap.org/show_bug.cgi?id=10512
--- Comment #4 from daniel@iamniz.co.uk --- Yes, apologies - feel free to close! -- Dan
https://bugs.openldap.org/show_bug.cgi?id=10512
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED Keywords|needs_review |