crossroads

Git mirror of https://crossroads.e-tunity.com/
git clone git://git.finwo.net/app/crossroads
Log | Files | Refs

onhooks.yo (1107B)


      1 conf(onstart, onend, onfail - Action Hooks)
      2     (The three directives tt(onstart), tt(onend) and tt(onfail) can be
      3      specified to start system commands (external programs) when a
      4      connection to a back end starts, fails or ends:
      5      itemization(
      6 	it() tt(onstart) commands will be run when Crossroads
      7 	successfully connects to a back end, and starts servicing;
      8 	it() tt(onend) commands will be run when a (previously
      9 	established) connection stops;
     10 	it() tt(onfail) commands will be run when Crossroads tries to
     11 	contact a back end to serve a client, but the back end can't
     12 	be reached.)
     13 
     14      The format is always tt(on)em(type) em(command). The em(command)
     15      is an external program, optionally followed by arguments. The
     16      command is expanded according to the following table:
     17 
     18      INCLUDEFILE(formattable))
     19     (itemization(
     20         it() tt(onstart) em(commandline)
     21 	it() tt(onend) em(commandline)
     22 	it() tt(onfail) em(commandline)
     23 	it() tt(onsuccess) em(commandline)))
     24     (There is no default. Normally no external programs are run upon
     25      connection, success or failure of a back end.)