mirror of
https://github.com/troglobit/finit.git
synced 2026-10-30 12:50:34 +00:00
inetd: Re-integrate the inetd subsystem into the new service model
This patch introduces a new service type called SVC_TYPE_INETD_CONN, which represents a running inetd connection. These are handled in much the same way as tasks. I.e. they are considered one-time jobs, with the difference that they are removed upon completion.
This commit is contained in:
1 parent
0beb566e45
commit
6ece4b8fa3
6 files changed
+219
-176
No files matched your search
@@ -426,11 +426,20 @@ char *svc_status(svc_t *svc)
|
||||
return "crashing";
|
||||
case SVC_BLOCK_USER:
|
||||
return "blocked";
|
||||
case SVC_BLOCK_INETD_BUSY:
|
||||
return "busy";
|
||||
}
|
||||
case SVC_DONE_STATE:
|
||||
return "done";
|
||||
case SVC_STOPPING_STATE:
|
||||
return "stopping";
|
||||
switch (svc->type) {
|
||||
case SVC_TYPE_INETD_CONN:
|
||||
case SVC_TYPE_RUN:
|
||||
case SVC_TYPE_TASK:
|
||||
return "active";
|
||||
default:
|
||||
return "stopping";
|
||||
}
|
||||
case SVC_WAITING_STATE:
|
||||
return "waiting";
|
||||
case SVC_READY_STATE:
|
||||
|
||||
Reference in new issue
Block a user