I'm trying to setup user accounting for a dialin service that I
inherited at work.  My configuration:

- a Cyclades multiport connected to 8 modems;
- a few users with their shells set to /usr/sbin/pppd;
- kernel version 2.2.4;
- pppd version 2.3.6.

(more details available upon request).

    Everything seems to be working fine, users are able to connect and
so on, but now I'd like to have some sort of accounting of the time
people spend online.  My first attempt was to write a small program
that sends start and stop records to an SQL server, and call it from
/etc/ppp/ip-up and /etc/ppp/ip-down.  However, the ip-up and ip-down
scripts don't seem to be called at all.  I'm aware that these scripts
are invoked with all fd's closed (which, BTW, has proven to be a huge
PITA in various other situations), but this has nothing to do with my
problem: if I put f.i.

        #! /bin/sh
        /usr/bin/touch /tmp/ppp

in ip-up, the file is not created.

    So my questions are:

(1) What's going on here?
(2) Is there a better approach?

    Regards,

    Liviu Daia

-- 
Dr. Liviu Daia               e-mail:   [EMAIL PROTECTED]
Institute of Mathematics     web page: http://www.imar.ro/~daia
of the Romanian Academy      PGP key:  http://www.imar.ro/~daia/daia.asc

-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to