From b5e9dba8d60b8fb80b6302b6ea2cd665b3ab370c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 10 Aug 2010 20:57:21 +0200 Subject: 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. --- src/unit.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/unit.h') 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 */ -- cgit v1.2.3-54-g00ecf