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

Michael Olbrich m.olbrich at pengutronix.de
Fri Apr 6 12:37:59 PDT 2012


Hi,

I sent this before, but I didn't get any comments. This is the same series
rebased onto the current master.
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.

Regards,
Michael


Michael Olbrich (3):
  dbus: add data argument to BusPropertySetCallback
  dbus: add generic DEFINE_BUS_PROPERTY_SET_ENUM() macro for enum
    properties
  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(-)

-- 
1.7.9.5



More information about the systemd-devel mailing list