Changes between Version 16 and Version 17 of 2.0/props/scripts

Show
Ignore:
Author:
pjf (IP: 83.230.1.136)
Timestamp:
03/04/08 22:12:25 (10 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • 2.0/props/scripts

    v16 v17  
    2828 
    2929= Events = 
    30 Following properties hold scripts to execute on particular events. Note that these properties can have a single textual value as well as be an array of textual values. Obviously, it's also possible to execute any programs on below events, not only shell scripts. 
     30Following properties hold scripts to execute on particular events. Note that these properties can have a single textual value as well as be an array of textual values. In the second case scripts will be executed in the order they appear in the array. 
     31 
     32Obviously, it's also possible to execute any programs on below events, not only shell scripts. 
    3133 
    3234Scripts are started in $FC_ROOT_CWD directory. 
    8082Whenever applying settings requires restarting some services (or sending them some signals), there's a need to prevent restarting the same service twice (or more) in case two different variables (or more) require that. 
    8183 
    82 This may be accomplished by assigning keys to the elements in the '''onapply''' array. Whenever the same key name repeats in whole apply process, actions defined in it won't be run. 
     84This may be accomplished by assigning group names to the scripts in the '''onapply''' array as in the example below: 
     85 
     86{{{ 
     87onapply = { 
     88  "/etc/rc.d/rc.hostname restart", 
     89  { group: "firewall", cmd: "/etc/rc.d/rc.firewall restart" } 
     90
     91}}} 
     92 
     93Whenever the same group name (''firewall'') repeats anywhere else in the whole apply process, actions defined in it won't be run (''/etc/rc.d/rc.firewall restart'' won't be run again).