[Contents] [Prev] [Next] [Index] [Report an Error]

Generating an Internal Event at Midnight

In the following example, the internal event called IT-IS-MIDNIGHT is generated at 12:00 AM every night (00:00:00). When the eventd process receives the IT-IS-MIDNIGHT event, certain actions are taken.

event-options {
    generate-event it-is-midnight time-of-day 00:00:00;
    policy midnight-chores {
        events it-is-midnight;
        then {
            ...
        }
    }
}

[Contents] [Prev] [Next] [Index] [Report an Error]