Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 10-08-2009, 05:14 PM   #1
LQ Newbie
Registered: Oct 2009
Posts: 2

Rep: Reputation: 0
syslogd refuses to start whenever slapd process is running

Setup is as follows:

Slackware 13.0 DomU
* running Samba (acting as domain controller)
* running OpenLDAP as backend for Samba

When I first boot up the DomU the /etc/rc.d/rc.syslog script will start successfully. /dev/log exists, logging works, the whole nine yards.

Whenever the syslogd process is killed (i.e., during log rotation) the process fails to start back up. /dev/log is no where to be found and there are no log messages being written to disk.

I've discovered that stopping the slapd process (OpenLDAP server) and then trying to start the syslogd process works.

If I try to start the syslogd process whenever slapd process is running syslogd fails with "network logging disabled (syslog/udp service unknown)".

Enabling network logging doesn't fix the problem. I've also tried changing the log settings for the slapd process to no avail. I figured that stopping slapd, starting syslogd, and then starting slapd would yield some meaningful log messages about what the two are doing. I get nothing. The processes don't complain and will work happily if started in a specific order.

Has anyone else experienced this problem? It sounds like a race condition but I have no idea where to look to fix it. I could set up my log rotation with post and pre events whenever the logs are rotated but this doesn't seem right and smacks too much of being a band-aid fix.
Old 10-08-2009, 06:13 PM   #2
Registered: Nov 2003
Posts: 386

Rep: Reputation: Disabled
I'm not sure if this will help, but here goes. The error message 'network logging disabled' is fatal to syslogd startup. It happens if it is unable to resolve the service 'syslog', protocol 'udp'. This is true whether or not you are doing network logging.

On most systems this lookup is done by reading /etc/services. Check your file, but I suspect you do have a "syslog/udp" entry in /etc/services.

Is it possible that slapd is changing how service names are looked up? (I have never used the server part of LDAP.) If it redirects the getservbyname() lookup library call to some other database (rather than /etc/services), and that doesn't have syslog/udp in it, that could explain what you are seeing. So now I'm thinking you should check /etc/nsswitch.conf to see how service names are resolved.
Old 10-08-2009, 07:44 PM   #3
LQ Newbie
Registered: Oct 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the reply ljb643.

I should have mentioned that the /etc/services file did have the correct line:

syslog 514/udp

But the other file you mention /etc/nsswitch.conf. Thanks for bringing that to my attention. Now that you mention it I did have to make changes to this file in order to get LDAP authentication working for Slackware.

The following line was causing the grief in the /etc/nsswitch.conf file:

services: ldap [NOTFOUND=return] files

Changing it to:

services: ldap [NOTFOUND=continue] files

fixes the problem.

Looking at this file now the [NOTFOUND=return] action may not be entirely correct for a lot of the lines present. I'll look through the file and try to determine which of these I can either remove the ldap service or change the action for. I'm actually thinking that I should just switch the databases to look in the files first then try the LDAP directory.


ldap, slackware, syslog

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up LDAP on RHEL4 with Webmin - slapd will not start. AoiShikaku Red Hat 7 12-15-2008 02:31 AM
SLAPD wont start xkape Fedora 1 11-13-2006 02:12 PM
How to make sure that syslogd is always running gn00kie Solaris / OpenSolaris 8 08-15-2006 12:49 AM
Script to see if a process ir running, if not start it ncsuapex Programming 4 07-03-2005 02:27 PM
Process start delay when network running andrewb758 Linux - Software 1 02-16-2004 12:01 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:54 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration