summaryrefslogtreecommitdiffstats
path: root/scripts/start.jabot.sh
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/start.jabot.sh')
-rwxr-xr-xscripts/start.jabot.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/start.jabot.sh b/scripts/start.jabot.sh
new file mode 100755
index 0000000..f85b92d
--- /dev/null
+++ b/scripts/start.jabot.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+export JABOT_USER=jogl
+export JABOT_HOME=/home/$JABOT_USER/jabot
+export JABOT_LOG=$JABOT_HOME/irc_jogamp_CatOut_`date -u +%Y%m%d%H%M`.log
+export JAVA_HOME=/opt-linux-x86_64/j2se6
+JAVA=$JAVA_HOME/bin/java
+nohup nice $JAVA \
+ -cp $JABOT_HOME/build/jabot.jar org.jogamp.jabot.irc.CatOut \
+ -login jogamp -name CatOut \
+ -server irc.freenode.net -channel jogamp \
+ -logrotate 86400000 \
+ -logprefix "/home/jogl/jogamp.org/irclogs/" \
+ -htmlHeader $JABOT_HOME/assets/header.html \
+ -htmlFooter $JABOT_HOME/assets/footer.html \
+ > $JABOT_LOG 2>&1 &
+
+# 1day = 24 * 60 * 60 * 1000 = 86400000