Skip to content

Commit e8bdbcd

Browse files
author
Hubert
authored
Show an example of Cron configuration
1 parent 887351c commit e8bdbcd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CronTasks/CronMonitor

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/bin/sh
22

3+
# This script is intended to be used as a CRON command
4+
# On my server, I use the following configuration in /etc/crontab to run it every 5 minutes:
5+
#
6+
# #minute hour mday month wday who command
7+
# */5 * * * * minecraft /usr/bin/nice /home/minecraft/CronTasks/CronMonitor
8+
39
. .minecraft-library
410

511
RestartServerIfCrashed && RestartServerIfFrozen && RestartServerIfTooManyEntitites

0 commit comments

Comments
 (0)