Browse Source

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

Ask Bjørn Hansen 13 years ago
parent
commit
965751f679
1 changed files with 3 additions and 2 deletions
  1. 3 2
      service/run

+ 3 - 2
service/run

@@ -1,5 +1,6 @@
 #!/bin/sh
 #!/bin/sh
 exec 2>&1
 exec 2>&1
-IP=`head -1 env/IP`
 cd /opt/geodns
 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