on "event" {} handler
WCL block
Binds a wscript file to a lifecycle event; handler failures are logged, never fatal.
An on "<event>" {} block reacts to a lifecycle event by running a wscript file (fn handle(event, lab)).
wcl
on "vm.crashed" { run = "scripts/collect-dumps.ws" }
on "host.disk_low" { run = "scripts/alert.ws" }
Handler failures are logged, never fatal. See the event list for every event name and the Event type for the handler payload.