The slurpd daemon is used to propagate changes from one slapd database to another. If slapd is configured to produce a replication log, slurpd reads that replication log and sends the changes to the replica slapd instances using the LDAP protocol.
Upon startup, slurpd reads the replication log (given either by the replogfile directive in the slapd configuration file, or by the -r option). If the replication log file does not exist or is empty, slurpd goes to sleep. It periodically wakes up and checks to see if any changes need to be made.
When changes need to be made to replica slapd instances, slurpd locks the replication log, makes a private copy, releases the lock, and forks one copy of itself for each replica slapd to be updated. Each child process binds to the slave slapd with the DN given by the binddn option to the replica directive in the slapd config file, and sends the changes. See "slapdrepl" for details on the directory server daemon.
|
The parameters for this command are:
-o
Run once and then exit. By default, slurpd processes the replog file, then watches for more replication entries to be appended. If the -o option is specified, slurpd processes a replication log and exits.
-d debuglevel
Turn on debugging as defined by debuglevel. If this option is specified, slurpd does not fork or dissociate from the invoking terminal. Some general operation and status messages are printed for any value of debuglevel. debuglevel is taken as a bit string, with each bit corresponding to a different kind of debugging information. See "Structure of the imta.cnf File" for details.
-f slapd-config- file
Specifies the slapd configuration file. The default is
/etc/opt/SUNWconn/ldap/current/slapd.conf.-r slapd-replog-file
Specifies the name of the slapd replication log file. By default, the name of the replication log file is read from the slapd configuration file. The -r option allows you to override this. In conjunction with the -o option, you can process a replication log file in a "one-shot" mode. For example, if slurpd has encountered errors in processing a replication log, you can run it in one-shot mode and give the rejection file name as the argument to the -r option, after you have resolved the problem that caused the replication failure.
-t temp-dir
slurpd copies the replication log to a working directory before processing it. This option allows you to specify the location of these temporary files. The default is /usr/tmp.