Browse Source

Add supervise scripts

Ask Bjørn Hansen 13 years ago
parent
commit
7d8a7fd05a
2 changed files with 7 additions and 0 deletions
  1. 2 0
      service/log/run
  2. 5 0
      service/run

+ 2 - 0
service/log/run

@@ -0,0 +1,2 @@
+#!/bin/sh
+exec setuidgid nobody multilog t s20000000 n5 /var/log/geodns

+ 5 - 0
service/run

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