diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2023-04-13 19:03:43 +0200 |
---|---|---|
committer | Luca Boccassi <luca.boccassi@gmail.com> | 2023-04-14 20:27:59 +0100 |
commit | e77e07f60186b96a9b5df398e92a18a72918e0f2 (patch) | |
tree | a027c2307414487484f58dea1a1c2752becda4ed /src/core/unit.h | |
parent | 6e4ec79a3cc5a24d9a5ac53c3737c4d398ac383d (diff) | |
download | systemd-e77e07f60186b96a9b5df398e92a18a72918e0f2.tar.gz |
preset: Add ignore directive
The ignore directive specifies to not do anything with the given
unit and leave existing configuration intact. This allows distributions
to gradually adopt preset files by shipping a ignore * preset file.
Diffstat (limited to 'src/core/unit.h')
-rw-r--r-- | src/core/unit.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/unit.h b/src/core/unit.h index d3eb5ba881..ea236d933c 100644 --- a/src/core/unit.h +++ b/src/core/unit.h @@ -11,6 +11,7 @@ #include "bpf-program.h" #include "condition.h" #include "emergency-action.h" +#include "install.h" #include "list.h" #include "show-status.h" #include "set.h" @@ -358,7 +359,7 @@ typedef struct Unit { /* Cached unit file state and preset */ UnitFileState unit_file_state; - int unit_file_preset; + PresetAction unit_file_preset; /* Where the cpu.stat or cpuacct.usage was at the time the unit was started */ nsec_t cpu_usage_base; @@ -954,7 +955,7 @@ void unit_start_on_failure(Unit *u, const char *dependency_name, UnitDependencyA void unit_trigger_notify(Unit *u); UnitFileState unit_get_unit_file_state(Unit *u); -int unit_get_unit_file_preset(Unit *u); +PresetAction unit_get_unit_file_preset(Unit *u); Unit* unit_ref_set(UnitRef *ref, Unit *source, Unit *target); void unit_ref_unset(UnitRef *ref); |