chiark / gitweb /
startup.sh: Run bots in a screen(1) instance.
[ircbot] / startup.sh
index 42a3eb877ec7ea01f34e57675d744a1b4478eece..392f6c87be0fc2b13914fa75b884d15e934f7355 100755 (executable)
@@ -1,7 +1,7 @@
-#!/bin/sh
+#! /bin/sh
 set -e
-cd "`dirname $0`"
-sleep 1
-set +e
-./blight-startup.tcl
-sleep ${1:-5000000}
+
+screen -d -m -S bots
+screen -X -S bots multiuser on
+screen -X -S bots acladd mdw,root
+screen -X -S bots screen -t blight ./blight-startup.tcl distorted