summaryrefslogtreecommitdiff
path: root/src/core/unit.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2013-01-19 01:01:41 +0100
committerLennart Poettering <lennart@poettering.net>2013-01-19 01:02:30 +0100
commit71645acac27da55d510f2e4d61cc61b4e5b93035 (patch)
treebe5b435bb0c0ccaeee51b69beae571ddd3b5efd4 /src/core/unit.h
parente884315e3d28df0d5f4e7d4590730e9760b8f447 (diff)
unit: optionally allow making cgroup attribute changes persistent
Diffstat (limited to 'src/core/unit.h')
-rw-r--r--src/core/unit.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/unit.h b/src/core/unit.h
index 23cd9ef459..297b35d8f5 100644
--- a/src/core/unit.h
+++ b/src/core/unit.h
@@ -271,6 +271,9 @@ struct UnitVTable {
* ExecContext is found, if the unit type has that */
size_t exec_context_offset;
+ /* The name of the section with the exec settings of ExecContext */
+ const char *exec_section;
+
/* Config file sections this unit type understands, separated
* by NUL chars */
const char *sections;
@@ -551,6 +554,9 @@ int unit_exec_context_defaults(Unit *u, ExecContext *c);
ExecContext *unit_get_exec_context(Unit *u);
+int unit_write_drop_in(Unit *u, bool runtime, const char *name, const char *data);
+int unit_remove_drop_in(Unit *u, bool runtime, const char *name);
+
const char *unit_active_state_to_string(UnitActiveState i);
UnitActiveState unit_active_state_from_string(const char *s);