Hello,

I have some scripts that do some sync tasks when freeradius start accouting:

Like this:

created module, named 'sysnotify' with this:

exec sysnotify {
       wait = no
program = "/ondasys/system/sysnotify %{User-Name:-Nenhum} %{Framed-IP-Address:-Nenhum} %{Acct-Status-Type:-ERR} %{Acct-Session-Id:-ERR} %{NAS-IP-Address}"
       packet_type = Accounting-Request
}


and, instanciated at preacct block:

preacct {
      acct_unique
      sysnotify
}

it´s working fine, but i need to optimize this, because this scripts are running in Accouting-Start, Accouting-Stop and Interim-Update ..

How i can catch ONLY Start and Stop events ?

Regards !

--
Sds.

Alexandre Jeronimo Correa
Sócio-Administrador

Onda Internet
www.onda.net.br

IPV6 Ready !

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to