I was just experimenting with procd and I notice that it is sending respawn and fail events on the ubus in the function instance_exit.
- snip -
if (in->respawn_count > in->respawn_retry && in->respawn_retry > 0 ) {
LOG("Instance %s::%s s in a crash loop %d crashes, %ld seconds since last crash\n",
in->srv->name, in->name, in->respawn_count, runtime);
in->restart = in->respawn = 0;
in->halt = 1;
service_event("instance.fail", in->srv->name, in->name);
} else {
service_event("instance.respawn", in->srv->name, in->name);
uloop_timeout_set(&in->timeout, in->respawn_timeout * 1000);
}
- snip -
However, when I run "ubus listen" on command like and kill services like rpcd, network etc., Though the services get respawned, I do not see "instance.respawn" or "instance.fail" events on the "listen" output.
Am I missing something?