Ver Fonte

Make default service script get configuration from /opt/geodns/env

Ask Bjørn Hansen há 13 anos atrás
pai
commit
965751f679
1 ficheiros alterados com 3 adições e 2 exclusões
  1. 3 2
      service/run

+ 3 - 2
service/run

@@ -1,5 +1,6 @@
 #!/bin/sh
 exec 2>&1
-IP=`head -1 env/IP`
 cd /opt/geodns
-exec softlimit -d500000000 ./geodns --interface "$IP" -run
+IP=`head -1 env/IP`
+CONFIG=`head -1 env/CONFIG`
+exec softlimit -d500000000 ./geodns --interface="$IP" --config="$CONFIG" --run