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