Public bug reported:

From a fresh package install:

       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: 
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

As the error states, it seems like ExecStart should be made absolute ie
/usr/bin/sh?

** Affects: openldap (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: 26.04

** Tags added: 26.04

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

Title:
  slapd.service won't restart

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openldap/+bug/2152633/+subscriptions


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

Reply via email to