summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index cdc50eb..51e80dd 100644
--- a/Makefile
+++ b/Makefile
@@ -20,12 +20,12 @@ logger: src/logger.c src/utils.c config.mk
$(CC) $(filter-out config.mk,$^) -o $@ $(MACROS)
publish: publisher logger
- [ -f pid ] && { kill $(shell cat pid); rm pid; }
for client in $$(basename -a /home/loic/registers/*); \
do \
./logger $(LOGGERS_DIR) $$client $(LOG_INTERVAL) &> logger_$${client}.log & echo $$! >> pid; \
done
./publisher $(LOGGERS_DIR) $(LOG_INTERVAL) $(SUBSCRIBER_ADDR) $(ZMQ_PORT) $(KEY)
+ [ -f pid ] && { kill -INT $(shell cat pid); rm pid; }
subscribe: subscriber
./subscriber $(ZMQ_PORT) $(SUBSCRIBER_DIR)