chiark / gitweb /
unit: add simple only-by-dependency flag for units
[elogind.git] / src / unit.h
index 8f9d9e98601925f308277f0501f8f178ee1141c4..d8be185c5c6049ddc578035f19747455aca09db2 100644 (file)
@@ -136,6 +136,9 @@ 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;