summaryrefslogtreecommitdiff
path: root/src/unit.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-08-30 22:45:46 +0200
committerLennart Poettering <lennart@poettering.net>2010-08-30 23:04:36 +0200
commit2528a7a62c4ad9b2f4773b608d208239299da50c (patch)
treede5fa60c236e8da0df509d1583fb5369ae66828f /src/unit.h
parentb2bb3dbed9607c440b1a9ccacc515e28136d39ae (diff)
unit: introduce AllowIsolate= switch
Diffstat (limited to 'src/unit.h')
-rw-r--r--src/unit.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/unit.h b/src/unit.h
index 0362602fa..e3c0c0f06 100644
--- a/src/unit.h
+++ b/src/unit.h
@@ -205,6 +205,9 @@ struct Meta {
/* Don't allow the user to stop this unit manually, allow stopping only indirectly via dependency. */
bool refuse_manual_stop;
+ /* Allow isolation requests */
+ bool allow_isolate;
+
bool in_load_queue:1;
bool in_dbus_queue:1;
bool in_cleanup_queue:1;
@@ -359,7 +362,7 @@ struct UnitVTable {
/* Exclude from automatic gc */
bool no_gc:1;
- /* Exclude from isolation requests */
+ /* Exclude from stopping on isolation requests */
bool no_isolate:1;
/* Show status updates on the console */
@@ -445,6 +448,7 @@ void unit_dump(Unit *u, FILE *f, const char *prefix);
bool unit_can_reload(Unit *u);
bool unit_can_start(Unit *u);
+bool unit_can_isolate(Unit *u);
int unit_start(Unit *u);
int unit_stop(Unit *u);