[systemd-devel] [PATCH 0/3] make the service property StartLimitAction writeable

Michael Olbrich m.olbrich at pengutronix.de
Mon Feb 20 09:31:24 PST 2012


this patch series make the service property StartLimitAction writeable. The
first two patches are preparation to make it posible. The third patch
actually implements this.
Why this is useful: Consider a service with rather strict watchdog
settings. StartLimitAction=reboot-force and low StartLimitBurst. If the
service for some reason crashes immediately, then the system might reboot
before a user can interfere.
With StartLimitAction writeable a 'supervisor' service can start before
this service and (based on some use-case dependent data) set
StartLimitAction to 'none'. The user can then resolve the issue.


Michael Olbrich (3):
  dbus: add data argument to BusPropertySetCallback
  dbus: add generic DEFINE_BUS_PROPERTY_SET_ENUM() macro for enum
  dbus: make the service property StartLimitAction writeable

 src/dbus-common.c  |    6 +++++-
 src/dbus-common.h  |   17 ++++++++++++++++-
 src/dbus-manager.c |    4 ++--
 src/dbus-service.c |    5 +++--
 4 files changed, 26 insertions(+), 6 deletions(-)


More information about the systemd-devel mailing list