diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c index 94fbe34efebb..e22ef828f63a 100644 --- a/sbin/hastd/primary.c +++ b/sbin/hastd/primary.c @@ -837,6 +837,8 @@ hastd_primary(struct hast_resource *res) proto_recv(res->hr_ctrl, NULL, 0); descriptors_cleanup(res); + descriptors_assert(res, mode); + pjdlog_init(mode); pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); setproctitle("%s (primary)", res->hr_name); diff --git a/sbin/hastd/secondary.c b/sbin/hastd/secondary.c index ae1179239e80..821d5c7450b2 100644 --- a/sbin/hastd/secondary.c +++ b/sbin/hastd/secondary.c @@ -395,6 +395,8 @@ hastd_secondary(struct hast_resource *res, struct nv *nvin) proto_recv(res->hr_ctrl, NULL, 0); descriptors_cleanup(res); + descriptors_assert(res, mode); + pjdlog_init(mode); pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); setproctitle("%s (secondary)", res->hr_name);