summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--daemon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon.c b/daemon.c
index 3fff805..3cfe24f 100644
--- a/daemon.c
+++ b/daemon.c
@@ -148,6 +148,7 @@ static void parseControl(char *command) {
 	}
 
 	while (command) {
+		bool found = false;
 		char *pattern = strsep(&command, WS);
 		for (size_t i = 0; i < services.len; ++i) {
 			struct Service *service = &services.ptr[i];
@@ -157,7 +158,9 @@ static void parseControl(char *command) {
 			} else {
 				fn(service);
 			}
+			found = true;
 		}
+		if (!found) syslog(LOG_NOTICE, "no services matching %s", pattern);
 	}
 }