Named Triggers
Named triggers have been introduced to allow triggers to be inserted and removed into/from the running system.ü>
Triggerlist
Before we can insert triggers into the running system and delete them again we
need a possibility to display the currently installed triggers. I
decided to go the hard way since it is much more versatile.
When requesting the URL "/def/eibdef.xml", rleibd returns a XML-file of the following structure:
...
<grp adr="1.2.3">
<trigger name="abc" cmd="command">
</trigger>
...
</grp>
...
</eib>
Using this script requires the following line in your apache config:
Security advice: with this entry, rleibd is also reachable from your port 80 (not only from port 1215)!
If it is not, you propably forgot to enable mod_proxy ("a2enmod proxy" and "a2enmod proxy_http").
Inserting Triggers
To insert a trigger, send a request like
The name of the trigger is optional but if you want to delete it later
you must specify it and it must be unique.
The name must only contain standard Ascii-characters (no umlauts or language
specific characters). This is a design limit and will not change in the
near future.
Removing Triggers
To delete a trigger send a request like
Possibly running programs are not to be terminated but no new ones will be executed.
Triggers inserted this way will not survive a restart of rleibd.
Of course, you can also specify a name in your eibdef.xml. They behave vice versa, i.e. you can delete them from the running system but after a restart of rleibd, they will be active again.