<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><font style="" face="Tahoma">I put something on the web page about this (see lsnodes on the web page) but php was loaded on the image early on to facilitate running astdb.php which is located in /etc/asterisk/local. This was taken from Allmon and modified to write in a tmpfs. It downloads and writes the database to /var/log/asterisk<br id="FontBreak"></font><br>[root@node40961 local]# ls -ls /var/log/asterisk<br>total 144<br>136 -rw-r--r-- 1 root root 138444 Jun 28 03:03 astdb.txt<br> 0 -rw-r--r-- 1 root root 0 Jun 26 23:09 event_log<br> 4 -rw-r--r-- 1 root root 2246 Jun 28 10:12 messages<br> 4 -rw-r--r-- 1 root root 38 Jun 26 23:09 queue_log<br><br><font style="" face="Tahoma">The reason for this was that the database is used for my script lsnodes and /etc/asterisk/local/astdb.php is call daily by a cron job to update the database. The reason it is stored in /var/log/asterisk is that is a tmpfs and writes to ram not the SD card. Whenever you write any code on the BBB you should always do writes that can be volatile (not survive a boot) to ram.</font><font style="" face="Tahoma"> <br></font><font style="" face="Tahoma"><br>[root@node40961 local]# crontab -l<br>00 0-23 * * * cd /etc/asterisk/local; perl saytime.pl > /dev/null<br>03 03 * * * cd /etc/asterisk/local; ./astdb.php<br><br></font><font style="" face="Tahoma">If Allmon could be modified to use the database where it is currently located and being updated daily on the BBB that would be good but in any event it should not write to the SD card. There might be other things in Allmon that now do writes periodically to a directory stored on the SD card. This should be investigated and changed if possible</font>. <font style="" face="Tahoma">There is no reason to get this database twice and stroe it in different locations as it could be used by both lsnodes and Allmon simultaneously. The only things that should be written to SD are configuration changes that need to be retained through a boot.</font> <font style="" face="Tahoma"> We need to adhere to this rule when writing SW for the BBB.</font><font style="" face="Tahoma"><br></font><font style="" face="Tahoma"><br></font><font style="" face="Tahoma">The directories marked tmpfs are ram -</font><font style="" face="Tahoma"><br></font><br>[root@node40961 local]# df<br>Filesystem 1K-blocks Used Available Use% Mounted on<br>/dev/root 3675684 983440 2502200 29% /<br>devtmpfs 253560 0 253560 0% /dev<br>tmpfs 253704 0 253704 0% /dev/shm<br>tmpfs 253704 4484 249220 2% /run<br>tmpfs 253704 0 253704 0% /sys/fs/cgroup<br>tmpfs 253704 88 253616 1% /tmp<br>tmpfs 51200 160 51040 1% /var/log<br>tmpfs 50744 0 50744 0% /run/user/0<br><font style="" face="Tahoma"><br></font><font style="" face="Tahoma">/tmp and /var/log are recommended for this use but remember they do not survive a boot. Logging uses a maximum of about 30M at which point it starts to delete the oldest log information in a round robin fashion.</font><br><br><b><font style="font-size:16pt;" size="4">73 Doug</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">WA3DSP</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">http://www.crompton.com/hamradio</font></b><font style="font-size:16pt;" size="4"><br></font><br><br><div><hr id="stopSpelling">Date: Sat, 28 Jun 2014 19:44:57 -0700<br>From: nz6d@mac.com<br>To: arm-allstar@hamvoip.org<br>Subject: Re: [arm-allstar] Allmon<br><br><div>I will see what I can put together for the apache, PHP, and modules that need to be installed. </div><div><br></div><div>Dave</div><div><br></div><div><br></div><div><div style="font-size:9px;color:#575757;">Sent from my Galaxy S®III</div></div><br><br><div>-------- Original message --------</div><div>From: Doug Crompton </div><div>Date:06/28/2014 7:09 PM (GMT-08:00) </div><div>To: arm-allstar@hamvoip.org </div><div>Subject: [arm-allstar] Allmon </div><div><br></div><div dir="ltr"><font style="" face="Tahoma">Can someone writeup the procedure to get Allmon running on the BBB? If it is just notes that is fine. I can refine it. I will put a howto on the web page.<br id="ecxFontBreak"></font><br><b><font style="font-size:16pt;" size="4">73 Doug</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">WA3DSP</font><font style="font-size:16pt;" size="4"><br></font><font style="font-size:16pt;" size="4">http://www.crompton.com/hamradio</font></b><font style="font-size:16pt;" size="4"><br></font> </div>
<br>_______________________________________________
arm-allstar mailing list
arm-allstar@hamvoip.org
http://lists.hamvoip.org/cgi-bin/mailman/listinfo/arm-allstar
Visit the BBB web page - http://www.crompton.com/hamradio/BeagleBoneBlackAllstar/</div> </div></body>
</html>