mirror of
https://github.com/troglobit/finit.git
synced 2026-11-03 13:28:27 +00:00
Follow-up to a613ee9, handle reload as well (existing svc)
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
e55fd19091
commit
ecb5949679
1 file changed
+1
-1
+1
-1
@@ -1570,7 +1570,6 @@ int service_register(int type, char *cfg, struct rlimit rlimit[], char *file)
|
|||||||
} else
|
} else
|
||||||
svc = svc_find(name, id);
|
svc = svc_find(name, id);
|
||||||
|
|
||||||
if (!svc) {
|
|
||||||
if (!whichp(cmd)) {
|
if (!whichp(cmd)) {
|
||||||
if (nowarn)
|
if (nowarn)
|
||||||
return 0;
|
return 0;
|
||||||
@@ -1579,6 +1578,7 @@ int service_register(int type, char *cfg, struct rlimit rlimit[], char *file)
|
|||||||
return errno;
|
return errno;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!svc) {
|
||||||
dbg("Creating new svc for %s name %s id %s type %d", cmd, name, id, type);
|
dbg("Creating new svc for %s name %s id %s type %d", cmd, name, id, type);
|
||||||
svc = svc_new(cmd, name, id, type);
|
svc = svc_new(cmd, name, id, type);
|
||||||
if (!svc) {
|
if (!svc) {
|
||||||
|
|||||||
Reference in new issue
Block a user