Minor changes

This commit is contained in:
Loic Guegan 2023-07-15 21:20:55 +02:00
parent 087253ca04
commit 8f6bf2c440
2 changed files with 7 additions and 3 deletions

3
.gitignore vendored
View file

@ -6,4 +6,5 @@
# Caches
/logs
/data
/pid
/pid
/logger_*.log

View file

@ -15,8 +15,11 @@ logger: src/logger.c src/utils.c
$(CC) $^ -o $@
publish: publisher logger
rm -f pid
./logger $(LOGGERS_DIR) 587 $(LOG_INTERVAL) &> $(LOGGERS_DIR)/587.log & echo $$! >> pid
[ -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)
subscribe: subscriber