#!/bin/sh

: ${RADACCT_ROTATE_CONFIG:="/etc/raddb/radacct-rotate.conf"}

/bin/sh -n "$RADACCT_ROTATE_CONFIG" 2>/dev/null || exit 0

. "$RADACCT_ROTATE_CONFIG"
[ "$cron_disabled" = yes ] && exit 0

exec /usr/bin/radacct-rotate
