diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c index 966973bee45f..25322c014422 100644 --- a/sbin/hastd/primary.c +++ b/sbin/hastd/primary.c @@ -868,7 +868,7 @@ hastd_primary(struct hast_resource *res) pjdlog_init(mode); pjdlog_debug_set(debuglevel); pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); - setproctitle("%s (primary)", res->hr_name); + setproctitle("%s (%s)", res->hr_name, role2str(res->hr_role)); init_local(res); init_ggate(res); diff --git a/sbin/hastd/secondary.c b/sbin/hastd/secondary.c index 714588facd80..10c3cab50a55 100644 --- a/sbin/hastd/secondary.c +++ b/sbin/hastd/secondary.c @@ -414,7 +414,7 @@ hastd_secondary(struct hast_resource *res, struct nv *nvin) pjdlog_init(mode); pjdlog_debug_set(debuglevel); pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role)); - setproctitle("%s (secondary)", res->hr_name); + setproctitle("%s (%s)", res->hr_name, role2str(res->hr_role)); PJDLOG_VERIFY(sigemptyset(&mask) == 0); PJDLOG_VERIFY(sigprocmask(SIG_SETMASK, &mask, NULL) == 0);