summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--rvnit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rvnit.c b/rvnit.c
index 3f70458..4710a34 100644
--- a/rvnit.c
+++ b/rvnit.c
@@ -586,11 +586,13 @@ main()
 				LOG("sending sigterm to %s", services[i].name);
 				kill(services[i].pid, SIGTERM);
 				kill(services[i].pid, SIGCONT);
+				services[i].state = DOWN;
 				daemons++;
 			}
 			if (services[i].name[2] == 'L' &&
 			    services[i].pid > 0) {
 				loggers++;
+				services[i].state = DOWN;
 			}
 		}