Browse Source

* runit scripts

Alex 'AdUser' Z 10 years ago
parent
commit
0c94fa5dce
2 changed files with 12 additions and 0 deletions
  1. 6 0
      contrib/runit/log/run
  2. 6 0
      contrib/runit/run

+ 6 - 0
contrib/runit/log/run

@@ -0,0 +1,6 @@
+#!/bin/sh
+set -e
+
+LOG=/var/log/cjdns
+test -d "$LOG" || mkdir -p -m2750 "$LOG" && chown cjdns:adm "$LOG"
+exec chpst -u cjdns svlogd -tt "$LOG"

+ 6 - 0
contrib/runit/run

@@ -0,0 +1,6 @@
+#!/bin/sh
+set -e
+
+exec 2>&1
+sleep 5
+exec /usr/bin/cjdroute < /etc/cjdns/cjdroute.conf