summaryrefslogtreecommitdiff
path: root/src/librc/librc.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-10-10 09:08:59 +0000
committerRoy Marples <roy@marples.name>2008-10-10 09:08:59 +0000
commit50b8aba8d9cd5042f395ed7478400742dd3457f5 (patch)
tree6fb482ad331c504ace5ee64de92a828085a9358b /src/librc/librc.c
parent72dcac8c55e9994c48739f908d49889d880d8468 (diff)
downloadopenrc-50b8aba8d9cd5042f395ed7478400742dd3457f5.tar.gz
openrc-50b8aba8d9cd5042f395ed7478400742dd3457f5.tar.bz2
openrc-50b8aba8d9cd5042f395ed7478400742dd3457f5.tar.xz
Remove coldplug and just have hotplug which is a list of allowed/disallowed services. Makes things much easier.
Diffstat (limited to 'src/librc/librc.c')
-rw-r--r--src/librc/librc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librc/librc.c b/src/librc/librc.c
index b625b06..b355d7f 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))
{