From c69182961b00707d977957cf81d5c41cfbeab429 Mon Sep 17 00:00:00 2001 From: Michal Schmidt Date: Sun, 13 May 2012 18:18:54 +0200 Subject: unit: unit type dependent status messages Instead of generic "Starting..." and "Started" messages for all unit use type-dependent messages. For example, mounts will announce "Mounting..." and "Mounted". Add status messages to units of types that used to be entirely silent (automounts, sockets, targets, devices). For unit types whose jobs are instantaneous, report only the job completion, not the starting event. Socket units with non-instantaneous jobs are rare (Exec*= is not used often in socket units), so I chose not to print the starting messages for them either. This will hopefully give people better understanding of the boot. --- src/core/job.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/core/job.h') diff --git a/src/core/job.h b/src/core/job.h index 2e10143d2b..3208e6c65c 100644 --- a/src/core/job.h +++ b/src/core/job.h @@ -34,11 +34,6 @@ typedef enum JobState JobState; typedef enum JobMode JobMode; typedef enum JobResult JobResult; -#include "manager.h" -#include "unit.h" -#include "hashmap.h" -#include "list.h" - /* Be careful when changing the job types! Adjust job_merging_table[] accordingly! */ enum JobType { JOB_START, /* if a unit does not support being started, we'll just wait until it becomes active */ @@ -107,6 +102,11 @@ enum JobResult { _JOB_RESULT_INVALID = -1 }; +#include "manager.h" +#include "unit.h" +#include "hashmap.h" +#include "list.h" + struct JobDependency { /* Encodes that the 'subject' job needs the 'object' job in * some way. This structure is used only while building a transaction. */ -- cgit v1.2.3-54-g00ecf