Chapter 7. Writing a New Superservice

Table of Contents

DLF Design
The DLF Schema

Writing a new superservice involves several things:

  1. Making new directories in CVS:

    • /service/<superservice>/

    • /service/<superservice>/script/

    • /service/<superservice>/reports/

  2. Adding several files:

    • /service/<superservice>/Makefile.am

    • /service/<superservice>/reports/Makefile.am

    • /service/<superservice>/script/Makefile.am

    • /service/<superservice>/<superservice>.cfg

    • /service/<superservice>/<superservice>.xml This file specifies the superservice's DLF format. Ideally, it should offer a place for each and every snippet of information which will ever be found in a logfile from a program which offers functionality defined by the superservice.

  3. Writing service plugins (2dlf scripts):

    • /service/<superservice>/script/<service>2dlf.in

  4. Adapting several files:

    • /service/all/etc/defaults.in (to add a TODLF declaration)

    • /service/all/lib/Lire/DataTypes.pm (adjust the check_superservice function.)

    • /service/configure.in (add the Makefiles and 2dlf script to AC_OUTPUT, to get them converted from <service>2dlf.in to <service>2dlf.)

    • /service/Makefile.am (add the superservice directory to SUBDIRS, so that make gets run there too, when called from the root source directory.)

  5. Update Documentation:

    • User Manual: Chapter "Supported Applications".

    • Add manpages for scripts

  6. Update lr_config

DLF Design