#!/bin/sh
mkdir -p /var/run/oisp/
if [ -f "/etc/default/genesis" ]; then
    export $(xargs < "/etc/default/genesis")
fi
exec timeout "${GENESIS_TIMEOUT:-300}" /opt/oisp/bin/oispd -c /etc/oisp/oispd_genesis.json -w /var/oisp/genesis/ --sock-path /var/run/oisp/genesis/oispd.sock
