Refactor svc_status() used by 'initctl show'

Leverage new svc_t states in initctl status/show output.  Also, ensure
different svc_t types have correct start state.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2015-11-26 20:51:04 +01:00
1 parent b4ccc8b008
commit 1f88e1ff8a
3 files changed
+28 -6

No files matched your search

+1
View File
@@ -804,6 +804,7 @@ int service_register(int type, char *line, time_t mtime, char *username)
if (svc_is_inetd(svc)) {
char *iface, *name = service;
svc->state = SVC_WAITING_STATE;
if (svc->inetd.cmd && plugin)
name = plugin->name;