How can I run a callback when a cli session login inside the application daemon?

Hi,

I want to initiate some environment when a cli session login from application daemon.

How can I achieve that?

We have tried below start() function but looks like it will be called when the first cli command is typed.

struct confd_usess_cbs {
void (*start)(struct confd_daemon_ctx *dx,
struct confd_user_info *uinfo);
void (*stop)(struct confd_daemon_ctx *dx,
struct confd_user_info *uinfo);
};

Perhaps you can use the
/clispec/operationalMode/start/callback to do what you want to do when the cli session is started