mirror of
https://gitlab.com/manzerbredes/ina260-zmq-publisher.git
synced 2025-04-06 03:46:25 +02:00
Minor changes
This commit is contained in:
parent
087253ca04
commit
8f6bf2c440
2 changed files with 7 additions and 3 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -6,4 +6,5 @@
|
|||
# Caches
|
||||
/logs
|
||||
/data
|
||||
/pid
|
||||
/pid
|
||||
/logger_*.log
|
7
Makefile
7
Makefile
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue