# $OpenLDAP$ # Copyright 1999, The OpenLDAP Foundation, All Rights Reserved. # COPYING RESTRICTIONS APPLY, see COPYRIGHT. H1: Running slapd Slapd can be run in two different modes, stand-alone or from inetd(8). Stand-alone operation is recommended, especially if you are using the LDBM backend. This allows the backend to take advantage of caching and avoids concurrency problems with the LDBM index files. If you are running only a PASSWD or SHELL backend, running from inetd is an option. How to do this is described in the next section, after the command-line options and stand-alone daemon operation are described. H2: Command-Line Options {{I:Slapd}} supports the following command-line options. E: -d | ? This option sets the slapd debug level to . When level is a `?' character, the various debugging levels are printed and slapd exits, regardless of any other options you give it. Current debugging levels are E: 1 trace function calls E: 2 debug packet handling E: 4 heavy trace debugging E: 8 connection management E: 16 print out packets sent and received E: 32 search filter processing E: 64 configuration file processing E: 128 access control list processing E: 256 stats log connections/operations/results E: 512 stats log entries sent E: 1024 print communication with shell backends E: 2048 print entry parsing debugging E: 65535 enable all debugging Debugging levels are additive. That is, if you want to trace function calls and watch the config file being processed, you would set level to the sum of those two levels (in this case, 65). Consult {{EX: }} for more details. Note: slapd must have been compiled with {{EX:-DLDAP_DEBUG}} defined for any debugging information beyond the two stats levels to be available. E: -f This option specifies an alternate configuration file for slapd. E: -i This option tells slapd that it is running from inetd instead of as a stand-alone server. See the next section on running slapd from inetd for more details. E: -p This option specifies an alternate TCP port on which slapd should listen for connections. The default port is 389. H2: Running slapd as a Stand-Alone Daemon In general, slapd is run like this: E: $(ETCDIR)/slapd [