X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fprocd.git;a=blobdiff_plain;f=service%2Finstance.c;h=b7839660654a3548a6674a26b19a99f48c55edd9;hp=8f7835a79f34415dd07a13fa30e26adabac9e463;hb=98dc89149231c5268de38fc98590f9267aa9d05b;hpb=72f63807b3644ef7b8ab9025a02d7f509f39ad14 diff --git a/service/instance.c b/service/instance.c index 8f7835a..b783966 100644 --- a/service/instance.c +++ b/service/instance.c @@ -526,7 +526,9 @@ instance_exit(struct uloop_process *p, int ret) 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); } }