ospatrol-makelists

The ospatrol-makelists utility to compile cdb databases. ospatrol-makelists will scan ospatrol.conf for database files, check the mtime, and recompile all out of date databases.

See CDB List lookups from within Rules for more information.

ospatrol-makelists argument options

-h

Display the help message.

-V

Diplay the version and license information.

-d

Execute in debug mode.

-f

Force rebuild of all databases.

-u <user>

Run as <user>.

-g <group>

Run as <group>.

-c <config>

Run with configuration file of <config>.

Default /var/ospatrol/etc/ospatrol.conf

-D <dir>

Chroot to <dir>.

Default /var/ospatrol

ospatrol-makelists example usage

Example: Running ospatrol-makelists and an update is necessary

# /var/ospatrol/bin/ospatrol-makelists
 * File lists/blocked.txt.cdb need to be updated

Example: Running ospatrol-makelists when no update is necessary

# /var/ospatrol/bin/ospatrol-makelists
 * File lists/blocked.txt.cdb does not need to be compiled