1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

freepbx.yml: Try 'fwconsole stop' by hook or by crook? #2915

This commit is contained in:
root 2021-08-06 22:44:30 -04:00
parent b0fff8cc26
commit db2ef33fea

View file

@ -133,18 +133,23 @@
with_items:
- ./start_asterisk start
- ./install -n --webroot {{ freepbx_install_dir }} --dbuser {{ asterisk_db_user }} --dbpass {{ asterisk_db_password }} --dbname {{ asterisk_db_dbname }} --cdrdbname {{ asterisk_db_cdrdbname }}
# - ./start_asterisk stop
# - killall -9 safe_asterisk # 2021-08-05: These 2 lines from PR #2912 attempted a brute force (not enough!) workaround for the #2908 annoyance on 1st
# - killall -9 asterisk # install, of 'systemctl status freepbx' showing "Unable to run Pre-Asterisk hooks, because Asterisk is already running"
# - /usr/sbin/asterisk -rx "core stop gracefully"
# - fwconsole reload # 2021-08-06: Insufficient
# - fwconsole stop # 2021-08-06: Insufficient
- fwconsole restart # 2021-08-06: #2915 EXPERIMENT
# - fwconsole ma disablerepo commercial
# - fwconsole ma installall
# - fwconsole ma delete firewall
# - fwconsole reload
# - fwconsole restart
- name: "Does 'fwconsole stop' gracefully stop both Asterisk processes, to avoid #2915 \"Unable to run Pre-Asterisk hooks, because Asterisk is already running\" in 'journalctl -u freepbx' logs?"
command: fwconsole stop
# command: "{{ item }}"
# with_items:
# # - ./start_asterisk stop
# # - killall -9 safe_asterisk # 2021-08-05: These 2 lines from PR #2912 attempt a brute force workaround for #2908 annoyances on 1st install,
# # - killall -9 asterisk # i.e. 'systemctl status freepbx' showing "Unable to run Pre-Asterisk hooks, because Asterisk is already running"
# # - /usr/sbin/asterisk -rx "core stop gracefully"
# # - fwconsole reload
# - fwconsole stop
# # - fwconsole restart
# # - fwconsole ma disablerepo commercial
# # - fwconsole ma installall
# # - fwconsole ma delete firewall
# # - fwconsole reload
# # - fwconsole restart
# - name: 'FreePBX - fix file permissions for NGINX: /etc/freepbx.conf (0644), /var/log/asterisk/freepbx.log (0666)'
# file: