diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-08-10 20:57:21 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-08-11 01:44:37 +0200 |
commit | b5e9dba8d60b8fb80b6302b6ea2cd665b3ab370c (patch) | |
tree | 87d329ecaab58cdf203208c945d1a80f7627ce5e /src/load-fragment.c | |
parent | 77d98d666a4ef24ef22f032476fd5d954c1a4699 (diff) |
unit: rename OnlyByDependency= to RefuseManualStart= and introduce RefuseManualStop=
Some unit shall never be start on user request (e.g. shutdown.target)
others never be stopped on user request (e.g. auditd.servce), hence
offer options for both.
Diffstat (limited to 'src/load-fragment.c')
-rw-r--r-- | src/load-fragment.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/load-fragment.c b/src/load-fragment.c index f2f2d72837..1a87a96194 100644 --- a/src/load-fragment.c +++ b/src/load-fragment.c @@ -1566,7 +1566,8 @@ static int load_from_path(Unit *u, const char *path) { { "OnFailure", config_parse_deps, UINT_TO_PTR(UNIT_ON_FAILURE), "Unit" }, { "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" }, + { "RefuseManualStart", config_parse_bool, &u->meta.refuse_manual_start, "Unit" }, + { "RefuseManualStop", config_parse_bool, &u->meta.refuse_manual_stop, "Unit" }, { "DefaultDependencies", config_parse_bool, &u->meta.default_dependencies, "Unit" }, { "IgnoreDependencyFailure",config_parse_bool, &u->meta.ignore_dependency_failure, "Unit" }, { "JobTimeoutSec", config_parse_usec, &u->meta.job_timeout, "Unit" }, |