summaryrefslogtreecommitdiffstats
path: root/scripts/start.jabot.sh
blob: a23a435658b348b8c4e3857e3ef5439808a3ef03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

export JABOT_HOME=/srv/jabot/jabot
export JABOT_LOG=$JABOT_HOME/irc_jogamp_CatOut_`date -u +%Y%m%d%H%M`.log
# JAVA_HOME=/opt-linux-x86_64/j2se6
JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:bin/javac::")

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 \
        -logrotateStart 0505 \
        -logprefix "/srv/www/jogamp.org/log/irc/" \
        -urlprefix "http://jogamp.org/log/irc/" \
        -htmlHeader $JABOT_HOME/assets/header.html \
        -htmlFooter $JABOT_HOME/assets/footer.html \
        > $JABOT_LOG 2>&1 &

# 1day = 24 * 60 * 60 * 1000 = 86400000