вот содержимое запуска
#!/bin/sh
DBHOST=localhost
USER=
PASS=
DBNAME=
while :;
do
#mysqlcheck -h $DBHOST -u $USER --password=$PASS -s -r $DBNAME>>"log/`date +%Y-%m-%d_%H:%M:%S`-sql_check.log"
#mysqldump -h $DBHOST -u $USER --password=$PASS $DBNAME | gzip > "backup/`date +%Y-%m-%d_%H:%M:%S`-"$DBNAME"_loginserver.gz"
mv log/java0.log.0 "log/`date +%Y-%m-%d_%H-%M-%S`_java.log"
mv log/stdout.log "log/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"
nice -n -2 java -server -Xms64m -Xmx64m -cp lib/*: l2ffa.loginserver.L2LoginStart > log/stdout.log 2>&1
[ $? -ne 2 ] && break
sleep 10;
done
Вот 2 вариант...
#!/bin/sh
while true; do
nice -n -2 java -server -Xms64m -Xmx64m -cp lib/*: l2ffa.loginserver.L2LoginStart
sleep 10
done
Вот содержимое stdout.log
nice: setpriority: Permission denied
Error occurred during initialization of VM
Unable to load ZIP library: /usr/local/diablo-jdk1.6.0/jre/lib/i386/libzip.so
Сервер не висит в процессах...
#!/bin/sh
DBHOST=localhost
USER=
PASS=
DBNAME=
while :;
do
#mysqlcheck -h $DBHOST -u $USER --password=$PASS -s -r $DBNAME>>"log/`date +%Y-%m-%d_%H:%M:%S`-sql_check.log"
#mysqldump -h $DBHOST -u $USER --password=$PASS $DBNAME | gzip > "backup/`date +%Y-%m-%d_%H:%M:%S`-"$DBNAME"_loginserver.gz"
mv log/java0.log.0 "log/`date +%Y-%m-%d_%H-%M-%S`_java.log"
mv log/stdout.log "log/`date +%Y-%m-%d_%H-%M-%S`_stdout.log"
nice -n -2 java -server -Xms64m -Xmx64m -cp lib/*: l2ffa.loginserver.L2LoginStart > log/stdout.log 2>&1
[ $? -ne 2 ] && break
sleep 10;
done
Вот 2 вариант...
#!/bin/sh
while true; do
nice -n -2 java -server -Xms64m -Xmx64m -cp lib/*: l2ffa.loginserver.L2LoginStart
sleep 10
done
Вот содержимое stdout.log
nice: setpriority: Permission denied
Error occurred during initialization of VM
Unable to load ZIP library: /usr/local/diablo-jdk1.6.0/jre/lib/i386/libzip.so
Сервер не висит в процессах...