]> jfr.im git - irc/borknet/trunk.git/blame - services
Q: Removed the '!' at the end of the line directly giving the userpassword
[irc/borknet/trunk.git] / services
CommitLineData
cb67c259
O
1echo "Do you want to delete the old log files? (Y/n)"
2read log
3if [[ $log != "n" ]]
4then
5echo "Removing old logs..."
6rm nohup.out
7rm debug.*
8echo "Done."
9fi
10echo "Do you want to start in debug mode? (Y/n)"
11read debug
b1d4498c 12echo "Starting services..."
ac6b717f 13export CLASSPATH=${PWD%/*}:${PWD%/*}/borknet_services/mail.jar:${PWD%/*}/borknet_services/mysql-connector-java-3.0.17-ga-bin.jar:$CLASSPATH
14if [[ $log != "n" ]]
cb67c259 15then
b1d4498c 16nohup java borknet_services.Start -d &
cb67c259
O
17else
18nohup java borknet_services.Start &
19fi
ac6b717f 20pidof /usr/bin/java > services.pid
b1d4498c 21echo "Done."