mirror of
https://github.com/troglobit/finit.git
synced 2026-10-13 10:14:47 +00:00
Fix regression in 32b9096, only pick next :ID for inetd services
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
+4
-1
@@ -633,12 +633,15 @@ int service_register(int type, char *cfg, struct rlimit rlimit[], struct timeval
|
||||
svc = inetd_find_svc(cmd, service, proto);
|
||||
if (svc)
|
||||
goto inetd_setup;
|
||||
|
||||
if (id <= 0)
|
||||
id = svc_next_id(cmd);
|
||||
}
|
||||
recreate:
|
||||
#endif
|
||||
|
||||
if (id <= 0)
|
||||
id = svc_next_id(cmd);
|
||||
id = 1;
|
||||
|
||||
svc = svc_find(cmd, id);
|
||||
if (!svc) {
|
||||
|
||||
Reference in New Issue
Block a user