Skip to content
Permalink
Browse files

service: Read extra args from env/ARGS

  • Loading branch information
abh committed Nov 17, 2016
1 parent 4980e99 commit 8d0d24180f09294c7ee12b92a937311f55ac15e7
Showing with 5 additions and 2 deletions.
  1. +5 −2 service/run
@@ -20,12 +20,15 @@ if [ -e env/ID ]; then
fi
fi


CONFIG=dns
if [ -e env/CONFIG ]; then
CONFIG=`head -1 env/CONFIG`
fi

if [ -e env/ARGS ]; then
XARGS=`cat env/ARGS`
fi

ulimit -n 64000

exec softlimit -d500000000 ./geodns $INTERFACE $ID --config="$CONFIG"
exec softlimit -d500000000 ./geodns $INTERFACE $ID --config="$CONFIG" $XARGS

0 comments on commit 8d0d241

Please sign in to comment.
You can’t perform that action at this time.