If both restart and reload markers are set, the former takes
precedence.
Unit *u,
JobType type,
JobMode mode,
+ bool reload_if_possible,
uint32_t *ret_job_id) {
int r;
assert(u);
- r = unit_queue_job_check_and_mangle_type(u, &type, /* reload_if_possible= */ BIT_SET(u->markers, UNIT_MARKER_NEEDS_RELOAD));
+ r = unit_queue_job_check_and_mangle_type(u, &type, reload_if_possible);
if (r == -ENOENT)
return varlink_error_no_such_unit(link, "name");
if (r == -ELIBEXEC)
u,
JOB_TRY_RESTART,
JOB_FAIL,
+ /* reload_if_possible= */ !BIT_SET(u->markers, UNIT_MARKER_NEEDS_RESTART),
&job_id);
if (ERRNO_IS_NEG_RESOURCE(r))
return r;