Browse files

nice all the things

  • Loading branch information...
1 parent e44a3a7 commit a0e97c3a81b9508e95dd41e570842e46acdbcd7c @wuputah wuputah committed Jul 17, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 bin/poor-mans-cron.sh
  2. +2 −2 bin/run_minecraft.sh
View
4 bin/poor-mans-cron.sh
@@ -2,8 +2,8 @@
if [ -z "$(pidof poor-mans-cron.sh)"]; then
while :
do
- /app/bin/sync-to-s3.sh
- /app/bin/sync-to-s3.sh
+ nice /app/bin/sync-to-s3.sh
+ nice /app/bin/sync-to-s3.sh
sleep 60
done
fi
View
4 bin/run_minecraft.sh
@@ -10,7 +10,7 @@ trap clean_shutdown SIGTERM
. /app/bin/sync-from-s3.sh
# setup background syncing
-/app/bin/poor-mans-cron.sh &
+nice /app/bin/poor-mans-cron.sh &
cron_pid=$!
# create server config
@@ -20,7 +20,7 @@ cat /app/server.properties2 >> /app/server.properties
# print logs to stdout
touch /app/server.log
-tail -f /app/server.log &
+nice tail -f /app/server.log &
# run minecraft
cd /app

0 comments on commit a0e97c3

Please sign in to comment.