[arm-allstar] astdb.txt update?
Doug Crompton
wa3dsp at gmail.com
Mon Dec 4 22:22:31 EST 2017
Mal,
In the hamvoip code astdb is run from cron -
15 03 * * * cd /usr/local/sbin; ./astdb.php cron
This runs astdb.php in the /usr/local/sbin directory once a day at 3 AM
plus a 30 minute random offset. The random offset is so everyone does not
hit at the same time.
The php script reads the database, appends the local private entries from
/etc/asterisk/local/privatenodes.txt, sorts the file and writes the
contents out.
The output is stored in /var/log/asterisk/astdb.txt - ALL code wishing
access to the database should either link or directly reference this file.
Note that changes in the database would only get updated this one time a
3AM + ~30 minutes daily. If you want to see the update immediately after a
local change run the file manually.
*73 Doug*
*WA3DSP*
*http://www.crompton.com/hamradio <http://www.crompton.com/hamradio>*
On Mon, Dec 4, 2017 at 8:30 PM, "Mal - VK6MT via arm-allstar" <
arm-allstar at hamvoip.org> wrote:
> Hi
>
>
>
> I have a problem with my astdb.txt not updating in allmon. It is fine in
> supermon. As far as I can see there are three places that this file
> appears
> to reside. One in the http/allmon2 directory, a second in the
> http/supermon
> directory and a third in var/log/asterisk directory (which get updated a
> via
> a cron entry). It's just the allmon one that I have issues with.
>
>
>
> Can someone point me in the right direction?
>
>
>
> Thanks
>
>
>
> Mal
>
>
>
>
>
>
>
> _______________________________________________
>
> arm-allstar mailing list
> arm-allstar at hamvoip.org
> http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
>
> Visit the BBB and RPi2/3 web page - http://hamvoip.org
>
More information about the arm-allstar
mailing list