summaryrefslogtreecommitdiff
path: root/src/unit.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-03 19:48:33 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-03 19:48:33 +0200
commita40eb73224e237f758d38847ae216c019425ebac (patch)
treedc95aa3e1800bb44f43393341acb469863483036 /src/unit.h
parent2c966c038dc32ef39baa176371395cde4e541d01 (diff)
unit: add DefaultDependencies= setting
In order to simplify writing of unit files introduce default dependencies that are added to all units unless explictly disabled in a unit. This option can be switched off for select units that are involved in early boot-up ot late system shutdown, This should simplify service files for most normal daemons, but breaks existing service files for software involved in early boot (notably udev), which need to be updated for a DefaultDependencies=no setting)
Diffstat (limited to 'src/unit.h')
-rw-r--r--src/unit.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/unit.h b/src/unit.h
index d3dd5decd2..b6351d5541 100644
--- a/src/unit.h
+++ b/src/unit.h
@@ -142,9 +142,6 @@ struct Meta {
UnitLoadState load_state;
Unit *merged_into;
- /* Refuse manual starting, allow starting only indirectly via dependency. */
- bool only_by_dependency;
-
char *id; /* One name is special because we use it for identification. Points to an entry in the names set */
char *instance;
@@ -190,6 +187,12 @@ struct Meta {
/* Garbage collect us we nobody wants or requires us anymore */
bool stop_when_unneeded;
+ /* Refuse manual starting, allow starting only indirectly via dependency. */
+ bool only_by_dependency;
+
+ /* Create default depedencies */
+ bool default_dependencies;
+
/* When deserializing, temporarily store the job type for this
* unit here, if there was a job scheduled */
int deserialized_job; /* This is actually of type JobType */