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/unit.h | |
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/unit.h')
-rw-r--r-- | src/unit.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/unit.h b/src/unit.h index f657aea3e2..1c97e158fc 100644 --- a/src/unit.h +++ b/src/unit.h @@ -186,15 +186,18 @@ 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; /* Bring up this unit even if a dependency fails to start */ bool ignore_dependency_failure; + /* Refuse manual starting, allow starting only indirectly via dependency. */ + bool refuse_manual_start; + + /* Don't allow the user to stop this unit manually, allow stopping only indirectly via dependency. */ + bool refuse_manual_stop; + /* 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 */ |