@$(SSH) $(HOST_$*) $(SUDO) sliver-ovs status ||:
cache/host.%:
- @echo "IP lookup for $(call display,$*)"
- @host $(HOST_$*) | sed -n '/^.*has address */{s///p;q}' > $@
+ @echo "IP lookup for $(call display,$*) - logs in $(call log,$@)"
+ @host $(HOST_$*) | sed -n 's/^.*has address *//p' > $@ 2> $(call log,$@)
cache/db.%:
@echo "Starting db server on $(call display,$*) - logs in $(call log,$@)"
./tunproxy -t $$(cat cache/host.$(call leftnode,$*)):$$(cat cache/port.$*@1) \
-p $(call default,EXTERNAL_PORT,$(call rightnode,$*)) -e -d
+# reporting
+.PHONY: report
+report:
+ @echo SHELL=$(SHELL)
+ @echo "===> Configuration ($(CONF)):"
+ @cat $(CONF)
+ @for f in log/*; do \
+ echo "===> Log file $$(basename $$f):"; \
+ cat $$f; \
+ done