-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from muebau/1.12
fix to get 1.12 working again
- Loading branch information
Showing
4 changed files
with
52 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
*/10 * * * * root /render | ||
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" | ||
*/10 * * * * root /render > /proc/1/fd/1 2>/proc/1/fd/2 | ||
# Don't remove the empty line at the end of this file. It is required to run the cron job |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
#!/bin/bash | ||
if [ ! -f /config/render.conf ]; then | ||
echo "No config file found. Created a new one." | ||
cp /render.conf /config/render.conf | ||
fi | ||
|
||
RUNNINGMAPCRAFTERS=$(pgrep -c mapcrafter) | ||
if [ $RUNNINGMAPCRAFTERS == "0" ]; then | ||
mapcrafter -c /config/render.conf -j 2 >> /var/log/cron.log 2>&1 | ||
mapcrafter -c /config/render.conf -j 2 | ||
else | ||
echo "Found $RUNNINGMAPCRAFTERS instances of mapcrafter. So no new instance was started." >> /var/log/cron.log | ||
echo "Found $RUNNINGMAPCRAFTERS instances of mapcrafter. So no new instance was started." | ||
fi |