Hello,
Since the change to require administrator privileges to reload, this has become a pretty big pain. I understand the scalability issues of having multiple people issue reloads.
Some have suggested a cron job to trigger a reload periodically. However, I have concerns about this. What happens if Thirdlane is in the middle of writing new config files when a reload is started by cron? If a config file is half-written, the system will crash. Therefore, I need to know if the following code is atomic:
*/10 * * * [ -e /etc/webmin/asterisk/reload_default ] && /usr/sbin/asterisk -r -x "reload" && /bin/rm /etc/webmin/asterisk/reload_default
Is there any chance Thirdlane will soon support configuration data in mysql or LDAP so changes will be live without requiring reloads?
Regards,
Jawaid
cron driven reload
Hi Jawaid,
Running cron based reload should not be a problem - while there is a small chance of contention i would consider that really insignificant.
And yes, Thirdlane will support configuration data in DB - still not all of it will be realtime, so reloads will be still required in some cases (but less frequently - i.e. not when an extension is created).
no, there is a new version of thirdlane that does _some_ of that, of course that version is going to be significantly more expensive, it will never be available to MTE edition only the new. However, not every component can be entirely dynamic. For example when you load sip users and peers into a realtime database asterisk no longer does things like qualify, which means that the CHANISAVAIL function ceases to work. Other features such as MWI and busy lamps also report problems because asterisk 'forgets' about the phones when they arent in use.
Your concern about half-written configs causing crashes is 1000x worse if things return to the old behavior of letting admins click reload constantly while another admin is making changes. How frequent are your customers making changes? I've not run across any crash logs from any consulting customers who have ever had a crash as a result of this situation.