Set override options in a file

If you use the override method to specify dispatcher options at runtime, commands can be run from a file.

You have several override options in the command to start your dispatcher.

For example:
fastcgidispatch -E res.log.output.path=/tmp 
            -E res.log.output.type=DAILYFILE 
            -E res.log.categories_filter="ALL"
(Line breaks have been added to the examples to improve readability.)

The GAS supports reading these options from a file. In this task you will create a file with commands that are read when starting the dispatcher.

  1. Create a text file (for example, mycmds.options); any filename may be used with or without extension.
  2. Add commands to the file in the specified format.
    Write the override option (-E) followed by the command in a separate line. Repeat this for each command you wish to add, and save when finished.
    -E
    res.log.output.path=/tmp
    -E
    res.log.output.type=DAILYFILE
    -E
    res.log.categories_filter="ALL"
  3. Start the dispatcher with the filename prefaced with the at symbol (@).
    fastcgidispatch -s @mycmds.options --pid-file /tmp/fastcgidispatch.pid

If the --dump-command option is used, for example fastcgidispatch -s @mycmds.options --pid-file /tmp/fastcgidispatch.pid --dump-command, the commands used to start the dispatcher are written to the standard out.

fastcgidispatch [-s] 
       [-E] [res.log.output.path=/tmp] 
       [-E] [res.log.output.type=DAILYFILE] 
       [-E] [res.log.categories_filter="ALL"] 
       [--pid-file] [/tmp/fastcgidispatch.pid]