Skip to main content
Topic: Issues with slapd.openrc (Read 662 times) previous topic - next topic
0 Members and 2 Guests are viewing this topic.

Issues with slapd.openrc

After switch from arch to artix-openrc slapd won't start during boot process though it is added to runlevel default.

Code: [Select]
$ rc-status --all | grep slapd
slapd                                                             [  stopped  ]

During boot i get this messages:

Code: [Select]
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:

Code: [Select]
# 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

Code: [Select]
# 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():

Code: [Select]
/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:

Code: [Select]
if [ $? -ne 0 ];

has to be

Code: [Select]
if [ $? -ne 1 ];

can i do so or are there better solutions?

kind regards andreas






 

Re: Issues with slapd.openrc

Reply #2
I don't have connman. NM is connecting and starting later in the boot process.
httpd and openvpn have "need net" in depend() too and are starting correctly. But they have no "before ...". That's why i think, that the "before ..." line is the reason for this issue.