HP-UX Directory Server Administrator Guide HP-UX Directory Server Version 8.1 (5900-3098, May 2013)

nsslapd-accesslog-logbuffering: off
nsslapd-accesslog - This parameter specifies the full path and filename of the named
pipe.
nsslapd-accesslog-logbuffering - The script will do the buffering, so you can turn
this parameter off.
nsslapd-accesslog-maxlogsperdir, nsslapd-accesslog-logexpirationtime,
nsslapd-accesslog-logrotationtime - These parameters control log rotation. If using
a pipe, you can disable the log rotation, so that the server does not rotate the log pipe.
nsslapd-accesslog-logging-enabled - By default, this parameter enables the access
log and error log.
Before configuring the parameters, save your current configuration so you can restore it later.
ldapsearch -s base -b "cn=config" \
nsslapd-accesslog-maxlogsperdir nsslapd-accesslog-logexpirationtime nsslapd-accesslog-logrotationtime \
nsslapd-accesslog nsslapd-accesslog > savedaccesslog.ldif
If the server is running and the log pipe is active and, if you use this LDIF with ldapmodify -f,
then the server immediately closes the current log and starts using the new one. This way you can
debug a live running server.
NOTE: The error log and audit log have a similar named configuration attributes such as,
nsslapd-errorlog, nsslapd-auditlog. The audit log is disabled by default. To enable
the audit log use the nsslapd-auditlog-logging-enabled: on .
14.3.2 Starting pipe at server startup
You can start the pipe when the server starts up and stop the pipe when the server shuts down.
Modify the instance specific configuration script
/etc/opt/dirsrv/config/dirsrv-instance_name as follows:
NOTE: Do not modify /etc/opt/dirsrv/config/dirsrv.
Example 27 Example of the configuration script:
# This file is sourced by dirsrv upon startup to set
# the default environment for a single specific directory
# server instances. To set defaults for all instances, edit
# the file in the same directory called dirsrv.
# These settings are used by the start-dirsrv and
# start-slapd scripts (as well as their associates stop
# and restart scripts). Do not edit them unless you know
# what you are doing.
SERVER_DIR=/opt/dirsrv ; export SERVER_DIR
SERVERBIN_DIR=/opt/dirsrv/sbin ; export SERVERBIN_DIR
CONFIG_DIR=/etc/opt/dirsrv/slapd-tracy ; export CONFIG_DIR
INST_DIR=/opt/dirsrv/slapd-tracy ; export INST_DIR
RUN_DIR=/var/opt/dirsrv/slapd-tracy/run ; export RUN_DIR
DS_ROOT= ; export DS_ROOT
PRODUCT_NAME=slapd ; export PRODUCT_NAME
# Put custom instance specific settings below here.
NOTE: Do not modify anything before that last line. Append the following script at the end of
the last line.
errpidfile=$RUN_DIR/dslogpipe-srv-errs.pid
# see if there is already a logpipe running - doing a stop or
# restart (which first calls stop) should have made the old
# one exit, but let's make sure we kill it first
if [ -f $errpidfile ] ; then
errpid=`cat $errpidfile`
if [ -n "$errpid" ] ; then
14.3 Named Pipe Log Script 515