summaryrefslogtreecommitdiffstats
path: root/usr/local/sbin/ppp-uptime.sh
Commit message (Collapse)AuthorAgeFilesLines
* Make script files for getting ppp connection uptime executable.gnhb2010-05-021-0/+0
|
* Implement reporting and logging of historical PPP uptime with data ↵gnhb2010-04-101-0/+3
persistent through reboot. Also, change the way uptime is captured. The mpd console is no longer used to get PPP uptime data, which will prevent spamming of PPP logs with console access messages. This means we no longer have to write out mpd_<interface>.query files to /var/etc. Now, a simple calculation of the age of the /tmp/<interface>up file is used. This gives the same data within the second as the console data so it seems acceptable. I removed some "rm -f" calls from ppp-linkdown as there was already code in interfaces.inc interface_bring_down function that unlinks the <interface>up and <interface>_router files. There is still the rm -r nameserver_<interface> call in the linkdown script. Maybe this should be moved to the interfac_bring_down function for consistency? Also, I commented out the ngctl shutdown <interface>: call. I think it's probably not necessary any more.
OpenPOWER on IntegriCloud