I’m running Asterisk 13.23.0 on an RPi 3B. I want to direct the logs that usually end up in /var/log/asterisk to /run/log/asterisk to reduce SD card writes.
I changed the value of astlogdir in /etc/asterisk.conf to point to /run/log/asterisk and restarted asterisk. The log files still end up in /var/log/asterisk. I then added a line to /etc/tmpfiles.d/asterisk to create the asterisk subdirectory under /run/log at boot time, in case this was necessary. After asterisk restart, logs still end up in /var/log/asterisk.
Have I missed something or is the asterisk.conf setting for astlogdir not being honored?
@david551, I realize that I could do one of the things that you suggest, but I am focused on what is preventing the astlogdir setting in asterisk.conf from being honored. Since this is documented functionality I ought not have to get creative.