You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
480 B
11 lines
480 B
#!/bin/sh
|
|
# NOTE: only works since all scripts in /etc/cron.*/ or crontab run as root
|
|
#python $HOME/chunkymap/chunkymap-regen.py
|
|
#-1 FOR LESS THAN ONE MINUTE AGO:
|
|
#lol won't work because if the py doesn't run the players won't be updated
|
|
#MT_PLAYERS_ACTIVE_COUNT=$(find /var/www/html/minetest/chunkymapdata/players -type f -mmin -1 | wc -l)
|
|
#if[ $MT_PLAYERS_ACTIVE_COUNT -gt 0 ]; then
|
|
flock -n /var/run/chunkymap-regen.lockfile -c $HOME/chunkymap/chunkymap-regen-players.sh
|
|
#fi
|
|
|
|
|
|
|