diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-03 19:48:33 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-03 19:48:33 +0200 |
commit | a40eb73224e237f758d38847ae216c019425ebac (patch) | |
tree | dc95aa3e1800bb44f43393341acb469863483036 /src/load-fragment.c | |
parent | 2c966c038dc32ef39baa176371395cde4e541d01 (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/load-fragment.c')
-rw-r--r-- | src/load-fragment.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/load-fragment.c b/src/load-fragment.c index 49b577fb2f..e5c7ba24ab 100644 --- a/src/load-fragment.c +++ b/src/load-fragment.c @@ -1506,6 +1506,7 @@ static int load_from_path(Unit *u, const char *path) { { "RecursiveStop", config_parse_bool, &u->meta.recursive_stop, "Unit" }, { "StopWhenUnneeded", config_parse_bool, &u->meta.stop_when_unneeded, "Unit" }, { "OnlyByDependency", config_parse_bool, &u->meta.only_by_dependency, "Unit" }, + { "DefaultDependencies", config_parse_bool, &u->meta.default_dependencies, "Unit" }, { "PIDFile", config_parse_path, &u->service.pid_file, "Service" }, { "ExecStartPre", config_parse_exec, u->service.exec_command+SERVICE_EXEC_START_PRE, "Service" }, |