From 4e0eace837287845504c9895429dc9f64872d075 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Thu, 17 May 2018 17:42:14 -0500 Subject: librc: Add crashed state --- src/librc/librc.c | 1 + src/librc/rc.h.in | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'src/librc') diff --git a/src/librc/librc.c b/src/librc/librc.c index ee65b00a..4473a1bb 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -50,6 +50,7 @@ static const rc_service_state_name_t rc_service_state_names[] = { { RC_SERVICE_HOTPLUGGED, "hotplugged" }, { RC_SERVICE_FAILED, "failed" }, { RC_SERVICE_SCHEDULED, "scheduled"}, + { RC_SERVICE_CRASHED, "crashed"}, { 0, NULL} }; diff --git a/src/librc/rc.h.in b/src/librc/rc.h.in index 1f984d52..d2e51dc6 100644 --- a/src/librc/rc.h.in +++ b/src/librc/rc.h.in @@ -188,7 +188,8 @@ typedef enum /* Optional states service could also be in */ RC_SERVICE_FAILED = 0x0200, RC_SERVICE_SCHEDULED = 0x0400, - RC_SERVICE_WASINACTIVE = 0x0800 + RC_SERVICE_WASINACTIVE = 0x0800, + RC_SERVICE_CRASHED = 0x1000, } RC_SERVICE; /*! Add the service to the runlevel -- cgit v1.2.3