summaryrefslogtreecommitdiff
path: root/src/unit.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-01-11 02:47:14 +0100
committerLennart Poettering <lennart@poettering.net>2012-01-11 02:52:34 +0100
commit4dcc1cb4155c4a72155e36a5461ab0847d4f1bf1 (patch)
treef063a012742604c46b30083672d2c0dd5069e095 /src/unit.c
parentbd1a69818042e85e24ec3adaf5eb3ac30ab1d9fd (diff)
unit: implement new PropagateReloadTo=/PropagateReloadFrom= operations
Diffstat (limited to 'src/unit.c')
-rw-r--r--src/unit.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/unit.c b/src/unit.c
index 3b476a8e02..e07d2c15d2 100644
--- a/src/unit.c
+++ b/src/unit.c
@@ -1539,7 +1539,9 @@ int unit_add_dependency(Unit *u, UnitDependency d, Unit *other, bool add_referen
[UNIT_REFERENCES] = UNIT_REFERENCED_BY,
[UNIT_REFERENCED_BY] = UNIT_REFERENCES,
[UNIT_TRIGGERS] = UNIT_TRIGGERED_BY,
- [UNIT_TRIGGERED_BY] = UNIT_TRIGGERS
+ [UNIT_TRIGGERED_BY] = UNIT_TRIGGERS,
+ [UNIT_PROPAGATE_RELOAD_TO] = UNIT_PROPAGATE_RELOAD_FROM,
+ [UNIT_PROPAGATE_RELOAD_FROM] = UNIT_PROPAGATE_RELOAD_TO
};
int r, q = 0, v = 0, w = 0;
@@ -2663,7 +2665,9 @@ static const char* const unit_dependency_table[_UNIT_DEPENDENCY_MAX] = {
[UNIT_REFERENCED_BY] = "ReferencedBy",
[UNIT_ON_FAILURE] = "OnFailure",
[UNIT_TRIGGERS] = "Triggers",
- [UNIT_TRIGGERED_BY] = "TriggeredBy"
+ [UNIT_TRIGGERED_BY] = "TriggeredBy",
+ [UNIT_PROPAGATE_RELOAD_TO] = "PropagateReloadTo",
+ [UNIT_PROPAGATE_RELOAD_FROM] = "PropagateReloadFrom"
};
DEFINE_STRING_TABLE_LOOKUP(unit_dependency, UnitDependency);