*/
static NTSTATUS cldapd_init(struct event_context *event_ctx, struct loadparm_context *lp_ctx, const struct model_ops *model_ops)
{
- return task_server_startup(event_ctx, lp_ctx, model_ops, cldapd_task_init);
+ return task_server_startup(event_ctx, lp_ctx, "cldap", model_ops, cldapd_task_init);
}
*/
static NTSTATUS dreplsrv_init(struct event_context *event_ctx, struct loadparm_context *lp_ctx, const struct model_ops *model_ops)
{
- return task_server_startup(event_ctx, lp_ctx, model_ops, dreplsrv_task_init);
+ return task_server_startup(event_ctx, lp_ctx, "drepl", model_ops, dreplsrv_task_init);
}
/*
struct loadparm_context *lp_ctx,
const struct model_ops *model_ops)
{
- return task_server_startup(event_ctx, lp_ctx, model_ops, kdc_task_init);
+ return task_server_startup(event_ctx, lp_ctx, "kdc", model_ops, kdc_task_init);
}
/* called at smbd startup - register ourselves as a server service */
struct loadparm_context *lp_ctx,
const struct model_ops *model_ops)
{
- return task_server_startup(event_context, lp_ctx, model_ops,
+ return task_server_startup(event_context, lp_ctx, "ldap", model_ops,
ldapsrv_task_init);
}
*/
static NTSTATUS nbtd_init(struct event_context *event_ctx, struct loadparm_context *lp_ctx, const struct model_ops *model_ops)
{
- return task_server_startup(event_ctx, lp_ctx,
+ return task_server_startup(event_ctx, lp_ctx, "nbt",
model_ops, nbtd_task_init);
}
struct loadparm_context *lp_ctx,
const struct model_ops *model_ops)
{
- return task_server_startup(event_context, lp_ctx,
+ return task_server_startup(event_context, lp_ctx, "rpc",
model_ops, dcesrv_task_init);
}
struct loadparm_context *lp_ctx,
const struct model_ops *model_ops)
{
- return task_server_startup(event_context, lp_ctx,
+ return task_server_startup(event_context, lp_ctx, "smb",
model_ops, smbsrv_task_init);
}
*/
NTSTATUS task_server_startup(struct event_context *event_ctx,
struct loadparm_context *lp_ctx,
+ const char *service_name,
const struct model_ops *model_ops,
void (*task_init)(struct task_server *))
{
state->task_init = task_init;
state->model_ops = model_ops;
- model_ops->new_task(event_ctx, lp_ctx, task_server_callback, state);
+ model_ops->new_task(event_ctx, lp_ctx, service_name, task_server_callback, state);
return NT_STATUS_OK;
}
struct loadparm_context *lp_ctx,
const struct model_ops *model_ops)
{
- return task_server_startup(event_context, lp_ctx,
+ return task_server_startup(event_context, lp_ctx, "web",
model_ops, websrv_task_init);
}
struct loadparm_context *lp_ctx,
const struct model_ops *model_ops)
{
- return task_server_startup(event_ctx, lp_ctx,
+ return task_server_startup(event_ctx, lp_ctx, "winbind",
model_ops, winbind_task_init);
}
return NT_STATUS_OK;
}
- return task_server_startup(event_ctx, lp_ctx,
+ return task_server_startup(event_ctx, lp_ctx, "wrepl",
model_ops, wreplsrv_task_init);
}