diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-06-24 23:41:32 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-06-24 23:41:32 +0200 |
commit | 31353099a886fc4fac4293989330847ea51e44d0 (patch) | |
tree | 039b6be47aae7bcf36b6eed748b0be04ec4fe0f3 /instance.c | |
parent | 2c6b282d4b4a22e511e8cced48263fd0bc9cc6da (diff) | |
download | unitd-31353099a886fc4fac4293989330847ea51e44d0.tar unitd-31353099a886fc4fac4293989330847ea51e44d0.zip |
add a debug message for showing starting of instances
Diffstat (limited to 'instance.c')
-rw-r--r-- | instance.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -64,6 +64,7 @@ instance_start(struct service_instance *in) return; } + DPRINTF("Started instance %s::%s\n", in->srv->name, in->name); in->proc.pid = pid; uloop_process_add(&in->proc); } @@ -201,8 +202,9 @@ instance_free(struct service_instance *in) } void -instance_init(struct service_instance *in, struct blob_attr *config) +instance_init(struct service_instance *in, struct service *s, struct blob_attr *config) { + in->srv = s; in->name = blobmsg_name(config); in->config = config; in->timeout.cb = instance_timeout; |