diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2014-04-24 09:35:37 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-04-24 20:11:20 +0200 |
commit | 93ae25e6fd62b2f87c3dd9ad3e81934eecc48057 (patch) | |
tree | 7a467226ee1aa4042a2bef0cc6b6b55f169c8e83 /src/core/dbus-service.c | |
parent | 209b031e4fb7b50fc1812fc7c6ea59ca2f5d0c78 (diff) |
service: add FailureAction= option
It has the same possible values as StartLimitAction= and is executed
immediately if a service fails.
Diffstat (limited to 'src/core/dbus-service.c')
-rw-r--r-- | src/core/dbus-service.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/dbus-service.c b/src/core/dbus-service.c index 45bfecf80d..2f9c25a48a 100644 --- a/src/core/dbus-service.c +++ b/src/core/dbus-service.c @@ -51,6 +51,7 @@ const sd_bus_vtable bus_service_vtable[] = { SD_BUS_PROPERTY("StartLimitBurst", "u", bus_property_get_unsigned, offsetof(Service, start_limit.burst), SD_BUS_VTABLE_PROPERTY_CONST), SD_BUS_PROPERTY("StartLimitAction", "s", property_get_start_limit_action, offsetof(Service, start_limit_action), SD_BUS_VTABLE_PROPERTY_CONST), SD_BUS_PROPERTY("RebootArgument", "s", NULL, offsetof(Service, reboot_arg), SD_BUS_VTABLE_PROPERTY_CONST), + SD_BUS_PROPERTY("FailureAction", "s", property_get_start_limit_action, offsetof(Service, failure_action), SD_BUS_VTABLE_PROPERTY_CONST), SD_BUS_PROPERTY("PermissionsStartOnly", "b", bus_property_get_bool, offsetof(Service, permissions_start_only), SD_BUS_VTABLE_PROPERTY_CONST), SD_BUS_PROPERTY("RootDirectoryStartOnly", "b", bus_property_get_bool, offsetof(Service, root_directory_start_only), SD_BUS_VTABLE_PROPERTY_CONST), SD_BUS_PROPERTY("RemainAfterExit", "b", bus_property_get_bool, offsetof(Service, remain_after_exit), SD_BUS_VTABLE_PROPERTY_CONST), |