#!/bin/bash
MOREDEBUG='logs/alldebug.txt'
while true
do
DATE=$(date +%Y_%m_%d_%H_%M_%S)
echo "----------------------" >>$MOREDEBUG
echo "Server restarted at "`date` >>$MOREDEBUG
echo "----------------------" >>$MOREDEBUG
./bin/minetestserver \
--port 30000 \
--logfile logs/debug_$DATE.txt
sleep 5
done &>> $MOREDEBUG
rubenwardy wrote:Based on an old version of VanessaE's server restart scripts.Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
#!/bin/bash
MOREDEBUG='logs/alldebug.txt'
while true
do
DATE=$(date +%Y_%m_%d_%H_%M_%S)
echo "----------------------" >>$MOREDEBUG
echo "Server restarted at "`date` >>$MOREDEBUG
echo "----------------------" >>$MOREDEBUG
./bin/minetestserver \
--port 30000 \
--logfile logs/debug_$DATE.txt
sleep 5
done &>> $MOREDEBUG
Users browsing this forum: No registered users and 19 guests