summaryrefslogtreecommitdiff
path: root/src/dbus-unit.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-17 00:58:47 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-17 00:58:47 +0200
commit5de9682cd647f07f043254fde70e62e1aa837476 (patch)
treebe788640f3b80c89da3a39f75884b3bf8469878d /src/dbus-unit.h
parent45fb0699c45d2e042e04a53e3ea00501e3f65f59 (diff)
unit: introduce OnFailure dependencies to activate units on failure of other units, as a way to implement an automatic rescue shell
Diffstat (limited to 'src/dbus-unit.h')
-rw-r--r--src/dbus-unit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dbus-unit.h b/src/dbus-unit.h
index d4af5a8b23..e93d65892a 100644
--- a/src/dbus-unit.h
+++ b/src/dbus-unit.h
@@ -70,6 +70,7 @@
" <property name=\"Conflicts\" type=\"as\" access=\"read\"/>\n" \
" <property name=\"Before\" type=\"as\" access=\"read\"/>\n" \
" <property name=\"After\" type=\"as\" access=\"read\"/>\n" \
+ " <property name=\"OnFailure\" type=\"as\" access=\"read\"/>\n" \
" <property name=\"Description\" type=\"s\" access=\"read\"/>\n" \
" <property name=\"LoadState\" type=\"s\" access=\"read\"/>\n" \
" <property name=\"ActiveState\" type=\"s\" access=\"read\"/>\n" \
@@ -105,6 +106,7 @@
{ "org.freedesktop.systemd1.Unit", "Conflicts", bus_unit_append_dependencies, "as", u->meta.dependencies[UNIT_CONFLICTS] }, \
{ "org.freedesktop.systemd1.Unit", "Before", bus_unit_append_dependencies, "as", u->meta.dependencies[UNIT_BEFORE] }, \
{ "org.freedesktop.systemd1.Unit", "After", bus_unit_append_dependencies, "as", u->meta.dependencies[UNIT_AFTER] }, \
+ { "org.freedesktop.systemd1.Unit", "OnFailure", bus_unit_append_dependencies, "as", u->meta.dependencies[UNIT_ON_FAILURE] }, \
{ "org.freedesktop.systemd1.Unit", "Description", bus_unit_append_description, "s", u }, \
{ "org.freedesktop.systemd1.Unit", "LoadState", bus_unit_append_load_state, "s", &u->meta.load_state }, \
{ "org.freedesktop.systemd1.Unit", "ActiveState", bus_unit_append_active_state, "s", u }, \