Hi all. I am looking to run the slapd process in the foreground on a Unix system, so I can be notified immediately if it dies... Looking at the usage of the "start-slapd" command: usage: ns-slapd -D instancedir [-d debuglevel] [-i pidlogfile] [-v] [-V] There''s no real guidance as to how the -d option works (i.e. what levels it supports), but experimentally, we''ve determined that -d 0 will run the process and not fork/exit into the background. Is this behavior known, and should we count on it? Is there a better way to get the slapd to stay in the foreground? Finally, what debug levels are available, and what do they mean? Thanks! -- Mike Mueller mike@subfocal.net
Richard Megginson
2007-Jan-18 22:44 UTC
Re: [Fedora-directory-users] Slapd command line usage
Mike Mueller wrote:> Hi all. > > I am looking to run the slapd process in the foreground on a Unix > system, so I can be notified immediately if it dies... > > Looking at the usage of the "start-slapd" command: > usage: ns-slapd -D instancedir [-d debuglevel] [-i pidlogfile] [-v] [-V] > > There''s no real guidance as to how the -d option works (i.e. what levels > it supports), but experimentally, we''ve determined that -d 0 will run > the process and not fork/exit into the background. Is this behavior > known, and should we count on it?Yes.> Is there a better way to get the > slapd to stay in the foreground?No, that''s it.> Finally, what debug levels are > available, and what do they mean? >http://directory.fedora.redhat.com/wiki/FAQ#Troubleshooting> Thanks! > >
Mike Mueller wrote:> Hi all. > > I am looking to run the slapd process in the foreground on a Unix > system, so I can be notified immediately if it dies... > > Looking at the usage of the "start-slapd" command: > usage: ns-slapd -D instancedir [-d debuglevel] [-i pidlogfile] [-v] [-V] > > There''s no real guidance as to how the -d option works (i.e. what levels > it supports), but experimentally, we''ve determined that -d 0 will run > the process and not fork/exit into the background. Is this behavior > known, and should we count on it? Is there a better way to get the > slapd to stay in the foreground? Finally, what debug levels are > available, and what do they mean? > > Thanks! >See this howto I wrote for details about running in the foreground: http://directory.fedora.redhat.com/wiki/Howto:Daemontools And with daemontools, it will be restarted immediately if it dies. Mike -- http://www.netauth.com - LDAP Directory Consulting