After switch from arch to artix-openrc slapd won't start during boot process though it is added to runlevel default.
$ rc-status --all | grep slapd
slapd [ stopped ]
During boot i get this messages:
Error: cannot start slapd as NetworkManager would not start.
Starting NetworkManager
connecting……………...0s[offline]
Marking Networkmanager as inactive. It will automatically marked as started after a network connection has been established.
I can start slapd manually:
# rc-service slapd start
* You have files in /var/lib/openldap/openldap-data not owned by the ldap user, you must ensure they are accessible to the slapd instance!
config file testing succeeded
* Starting ldap-server ... [ ok ]
$ rc-status --all | grep slapd
slapd [ started ]
I suppose, the depend()-function in /etc/init.d/slapd contains conflicting clauses. If i comment the line
# before dbus hald avahi-daemon
slapd is starting during the boot process.
To the warning above:
All files in /var/lib/openldap/openldap-data are owned by ldap:ldap. The command in /etc/init.d/slapd checkconfig():
/usr/bin/find $d ! -name DB_CONFIG ! -user ldap -o ! -group ldap |grep -sq .
does not find anything and exits with exitstatus 1. So i think, the following condition:
if [ $? -ne 0 ];
has to be
if [ $? -ne 1 ];
can i do so or are there better solutions?
kind regards andreas