From 2528a7a62c4ad9b2f4773b608d208239299da50c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 30 Aug 2010 22:45:46 +0200 Subject: unit: introduce AllowIsolate= switch --- src/unit.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/unit.h') diff --git a/src/unit.h b/src/unit.h index 0362602fa1..e3c0c0f060 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); -- cgit v1.2.3-54-g00ecf