1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

Merge pull request #2910 from holta/pbx-revert-RestartSec

Revert 'RestartSec=3' in /etc/systemd/system/freepbx.service
This commit is contained in:
A Holt 2021-08-04 15:00:58 -04:00 committed by GitHub
commit dfa2af8265
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View file

@ -7,7 +7,8 @@
# Yes /etc/systemd/system/freepbx.service is supposed to run 'fwconsole stop'
# then 'fwconsole start' reliably, as many web posts recommend, But No Dice!
#
# Do we need something like 'RestartSec=3' in freepbx.service ??
# Adding 'RestartSec=3' to freepbx.service is not the answer. Discussion here:
# https://github.com/iiab/iiab/pull/2908
#
#- name: Enable & (Re)start 'asterisk' systemd service (if pbx_enabled)
# systemd:

View file

@ -7,9 +7,9 @@ Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/sbin/fwconsole start
ExecStop=/usr/sbin/fwconsole stop
# 2021-08-04: Does this help Asterisk (re)start reliably, as FreePBX install completes?
# PR #2908: https://github.com/iiab/iiab/blob/master/roles/pbx/tasks/enable-or-disable.yml
RestartSec=3
# 2021-08-04: Asterisk doesn't (re)start reliably, as FreePBX install completes:
# https://github.com/iiab/iiab/blob/master/roles/pbx/tasks/enable-or-disable.yml
# RestartSec=3
[Install]
WantedBy=multi-user.target