JR Richardson wrote:
> Hi All,
> 
> Sanity check, PERSISTLOG=yes set in rc.conf requires the deletion of
> the link in /var/log/asterisk/cdr_csv, otherwise the link loops back
> to itself?

JR,

Here's the logic in the /etc/rc file that pertains to PERSISTLOG.


if [ "$PERSISTLOG" ]
then

if [ ! -d /mnt/kd/log ]
then
mkdir /mnt/kd/log
touch /var/log/wtmp
fi

ln -s /mnt/kd/log /var/log

else
mkdir /var/log
touch /var/log/wtmp
fi

CDR records can be handled separately by having a cdr-csv directory in 
the /mnt/kd directory

Here's that logic from the asterisk init file (/etc/init.d/asterisk)

if [ -d /mnt/kd/cdr-csv ]
then
ln -s /mnt/kd/cdr-csv /var/log/asterisk/cdr-csv
else
mkdir -p /var/log/asterisk/cdr-csv
fi

if [ -d /mnt/kd/cdr-custom ]
then
ln -s /mnt/kd/cdr-custom /var/log/asterisk/cdr-custom
else
mkdir -p /var/log/asterisk/cdr-custom
fi


Most changes that you make to rc.conf require rebooting.  There are 
symbolic links that are created during boot (or init).
-- 
Darrick Hartman
DJH Solutions, LLC
http://www.djhsolutions.com
http://www.djhsolutions.com/wiki

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Astlinux-users mailing list
Astlinux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/astlinux-users

Donations to support AstLinux are graciously accepted via PayPal to [EMAIL 
PROTECTED]

Reply via email to