librc: Add crashed state

This commit is contained in:
William Hubbs 2018-05-17 17:42:14 -05:00
parent faa8318b3b
commit 4e0eace837
2 changed files with 3 additions and 1 deletions

View File

@ -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}
};

View File

@ -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