#!@l_prefix@/bin/openpkg rc
##
##  rc.geoip2 -- Run-Commands
##

%config
    geoip2_enable="$openpkg_rc_def"

%status -u @l_susr@ -o
    geoip2_usable="no"
    geoip2_active="no"
    echo "geoip2_enable=\"$geoip2_enable\""
    echo "geoip2_usable=\"$geoip2_usable\""
    echo "geoip2_active=\"$geoip2_active\""

%daily -u @l_rusr@
    rcService geoip2 enable yes || exit 0
    @l_prefix@/bin/geoipupdate; [ $? -ge 2 ] && exit $?

