mirror of
https://github.com/msmhq/msm.git
synced 2024-08-30 18:12:35 +00:00
Added a cron file to be installed here: /etc/cron.d/msm
This commit is contained in:
parent
12b876a53b
commit
a25bc683f3
22
msm.cron
Normal file
22
msm.cron
Normal file
@ -0,0 +1,22 @@
|
||||
#
|
||||
# Minecraft Server Manager Cron
|
||||
#
|
||||
# Backs up worlds, rolls logs, moves worlds in RAM to disk,
|
||||
# and starts crashed servers
|
||||
#
|
||||
# For more information visit the project home page:
|
||||
# https://github.com/marcuswhybrow/minecraft-init
|
||||
#
|
||||
|
||||
|
||||
# Backs up all worlds for all servers at 2 minutes past 5 in the moring
|
||||
02 05 * * * minecraft /etc/init.d/mcm * worlds backup
|
||||
|
||||
# Rolls the logs for all servers at 55 minutes past 4 in the morning
|
||||
55 04 * * * minecraft /etc/init.d/mcm * logroll
|
||||
|
||||
# Moves all "in RAM" worlds to disk every half hour for all servers
|
||||
*/30 * * * * minecraft /etc/init.d/mcm * worlds todisk
|
||||
|
||||
# Start any crashed servers again each hour
|
||||
@hourly minecraft /etc/init.d/mcm start
|
Loading…
Reference in New Issue
Block a user