summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xnoise-as-shack4
-rwxr-xr-xnoise-server5
2 files changed, 5 insertions, 4 deletions
diff --git a/noise-as-shack b/noise-as-shack
new file mode 100755
index 00000000..c327bb81
--- /dev/null
+++ b/noise-as-shack
@@ -0,0 +1,4 @@
+#! /bin/sh
+qname="`readlink -f "$0"`"
+dirname="`dirname "$qname"`"
+exec su - shack -c "$dirname"/noise
diff --git a/noise-server b/noise-server
index defe2f5b..2012bbb5 100755
--- a/noise-server
+++ b/noise-server
@@ -1,7 +1,4 @@
#! /bin/sh
qname="`readlink -f "$0"`"
dirname="`dirname "$qname"`"
-if test -d "$dirname/modules" ; then
- export NOISE_PATH="${NOISE_PATH+$NOISE_PATH:}$dirname/modules"
-fi
-exec tcpserver -c 423 -t 2 -D 0.0.0.0 42380 "$dirname/noise"
+exec tcpserver -c 423 -t 2 -D 0.0.0.0 23 "$dirname/noise-as-shack"