Summary: | faulty /var/run/slapd.pid, can't restart server | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Matt Warnock <mwarnock> |
Component: | New packages | Assignee: | Robin Johnson <robbat2> |
Status: | RESOLVED INVALID | ||
Severity: | major | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Matt Warnock
2004-12-28 10:19:39 UTC
Temporary workaround: eliminate -m flag from "start" line in /etc/init.d/slapd, configure /etc/openldap/slapd.conf to set a PID file in /var/run/openldap/slapd.pid (or wherever) which works okay; pass the same parameter to the stop command, reboot to clear any garbage. It will work, but depends on coordination of the pidfile localtion between the /etc/openldap/slapd.conf and /etc/init.d/slapd files. Debian woody uses a sed script in /etc/init.d/slapd to extract the pidfile location from the /etc/ldap/slapd.conf file, then feeds that value to start-stop-daemon. Which leaves me wondering whether s-s-d is responsible to create the pid file, or whether it just counts on slapd to do it. If s-s-d does it, then why would we even need the parameter in the slapd.conf file? OK, mea culpa. The s-s-d DOES have a man page. I probably misspelled DAEMON again (not the first time), but runscript does not have a man page. Looks like I made a substitute /etc/openldap/slapd.conf that modded the pidfile parameter or something. Or maybe I was working too late with square eyeballs from staring at this @#$% screen. "emerge openldap" got me back to a working state, so it must be a problem in one of my mucked-up config files (like a bad pidfile location?). I'll try again from clean, testing each step this time. The man page for s-s-d clearly that the PID file is checked for a running process. If there is no such file, apparently it STILL looks for a slapd process, or my workaround mod (mentioned earlier) would not function properly for all states of running/not running and start/stop (which it does). |