diff --git a/src/core/main.c b/src/core/main.c index 183aac5379..d7651d0df9 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -2639,12 +2639,10 @@ static int do_queue_default_job( return log_struct_errno(LOG_EMERG, r, LOG_MESSAGE("Failed to isolate default target: %s", bus_error_message(&error, r)), LOG_MESSAGE_ID(SD_MESSAGE_CORE_ISOLATE_TARGET_FAILED_STR)); - } else - log_info("Queued %s job for default target %s.", - job_type_to_string(job->type), - unit_status_string(job->unit, NULL)); + } - m->default_unit_job_id = job->id; + log_info("Queued %s job for default target %s.", + job_type_to_string(job->type), unit_status_string(job->unit, NULL)); return 0; } diff --git a/src/core/manager.h b/src/core/manager.h index 00f3becd63..b7ee766b05 100644 --- a/src/core/manager.h +++ b/src/core/manager.h @@ -173,7 +173,7 @@ typedef struct Manager { LIST_HEAD(Unit, load_queue); /* this is actually more a stack than a queue, but uh. */ /* Jobs that need to be run */ - struct Prioq *run_queue; + Prioq *run_queue; /* Units and jobs that have not yet been announced via * D-Bus. When something about a job changes it is added here @@ -321,18 +321,15 @@ typedef struct Manager { Hashmap *watch_bus; /* D-Bus names => Unit object n:1 */ - bool send_reloading_done; - uint32_t current_job_id; - uint32_t default_unit_job_id; /* Data specific to the Automount subsystem */ int dev_autofs_fd; /* Data specific to the cgroup subsystem */ Hashmap *cgroup_unit; - CGroupMask cgroup_supported; char *cgroup_root; + CGroupMask cgroup_supported; /* Notifications from cgroups, when the unified hierarchy is used is done via inotify. */ int cgroup_inotify_fd; @@ -365,6 +362,8 @@ typedef struct Manager { bool dispatching_load_queue; int may_dispatch_stop_notify_queue; /* tristate */ + bool send_reloading_done; + /* Have we already sent out the READY=1 notification? */ bool ready_sent;