mqtt-logger/run.sh
tkl 54ed6c010f mqtt-logger: Initial commit
Signed-off-by: tkl <tkl@e320>
2018-07-20 14:53:22 +02:00

18 lines
242 B
Bash
Executable File

#!/bin/bash
/etc/init.d/mosquitto start
sleep 1
python /mqtt_logger/mqtt_logger/__init__.py
# if argument(s) given - execute argument(s) in container. Otherwise loop.
if [ "$#" -gt 0 ]; then
exec $@
else
while :;
do
sleep 1
done
fi