Switched to superchronic

This commit is contained in:
Carlos M. Martinez
2024-01-28 17:34:12 -05:00
parent 5586e7044a
commit 9e811db77b
3 changed files with 13 additions and 7 deletions

View File

@@ -22,10 +22,6 @@ term_handler() {
tail --pid=$killpid -f 2>/dev/null
}
if [ "${BACKUP_ENABLED}" = true ]; then
service cron start
fi
trap 'term_handler' SIGTERM
su steam -c ./start.sh &

View File

@@ -293,8 +293,8 @@ if [ "${BACKUP_ENABLED}" = true ]; then
echo "BACKUP_ENABLED=${BACKUP_ENABLED}"
# Assuming BACKUP_CRON_EXPRESSION is set and is valid
echo "$BACKUP_CRON_EXPRESSION bash /usr/local/bin/backup >/dev/null 2>&1" > "/home/steam/server/crontab"
crontab "/home/steam/server/crontab"
echo "$BACKUP_CRON_EXPRESSION bash /usr/local/bin/backup" > "/home/steam/server/crontab"
supercronic "/home/steam/server/crontab" &
fi
# Configure RCON settings