From 50b8aba8d9cd5042f395ed7478400742dd3457f5 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Fri, 10 Oct 2008 09:08:59 +0000 Subject: Remove coldplug and just have hotplug which is a list of allowed/disallowed services. Makes things much easier. --- src/librc/librc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/librc/librc.c') diff --git a/src/librc/librc.c b/src/librc/librc.c index b625b06a..b355d7f5 100644 --- a/src/librc/librc.c +++ b/src/librc/librc.c @@ -59,7 +59,7 @@ static const rc_service_state_name_t rc_service_state_names[] = { { RC_SERVICE_STOPPING, "stopping" }, { RC_SERVICE_INACTIVE, "inactive" }, { RC_SERVICE_WASINACTIVE, "wasinactive" }, - { RC_SERVICE_COLDPLUGGED, "coldplugged" }, + { RC_SERVICE_HOTPLUGGED, "hotplugged" }, { RC_SERVICE_FAILED, "failed" }, { RC_SERVICE_SCHEDULED, "scheduled"}, { 0, NULL} @@ -529,7 +529,7 @@ rc_service_mark(const char *service, const RC_SERVICE state) skip_state = state; } - if (state == RC_SERVICE_COLDPLUGGED || state == RC_SERVICE_FAILED) { + if (state == RC_SERVICE_HOTPLUGGED || state == RC_SERVICE_FAILED) { free(init); return true; } @@ -540,7 +540,7 @@ rc_service_mark(const char *service, const RC_SERVICE state) if ((s != skip_state && s != RC_SERVICE_STOPPED && - s != RC_SERVICE_COLDPLUGGED && + s != RC_SERVICE_HOTPLUGGED && s != RC_SERVICE_SCHEDULED) && (! skip_wasinactive || s != RC_SERVICE_WASINACTIVE)) { -- cgit v1.2.3