Bug 1471722
Summary: | systemd unit probably needs to have more requisites | ||
---|---|---|---|
Product: | [Fedora] Fedora EPEL | Reporter: | Brian J. Murrell <brian> |
Component: | asterisk | Assignee: | EPEL Packagers SIG <epel-packagers-sig> |
Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | epel7 | CC: | davek, g.devel, jsmith.fedora, rbryant |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2024-07-09 02:07:36 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Brian J. Murrell
2017-07-17 10:42:48 UTC
I've found that changing "After=" in systemctl to be network-online.target resolves this issue. Is this something that should be changed at the fedora level or upstream? Work around for other users: sudo systemctl edit asterisk Add these lines: [Unit] After= After=network-online.target Save file sudo systemctl daemon-reload And then sip channel will come up correctly on a boot. (In reply to Dave Koberstein from comment #1) > > Is this something that should be changed at the fedora level or upstream? Fedora packaging is providing it's own asterisk.service file: https://src.fedoraproject.org/cgit/rpms/asterisk.git/tree/asterisk.service?h=master so this needs to be fixed there. > Work around for other users: > sudo systemctl edit asterisk > > Add these lines: > > [Unit] > After= > After=network-online.target Nice. I've created https://src.fedoraproject.org/rpms/asterisk/pull-request/3 to get this fixed in the Fedora/EPEL packaging. I'm glad you were able to track down the issue. I've merged the pull request, and pushed the changes to rawhide. I'll try to get other branches built over the next day or two, but I'm traveling, and have limited internet access. After having run with this change for a bit, I don't think it's quite enough. I don't think the network-online.target implies that name services are up and running yet. So one can hit that target before DNS is actually available, Asterisk starts up but DNS has not started or at least completed starting. Do we actually want "nss-lookup.target" here rather than network-online.target? This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component. EPEL 7 entered end-of-life (EOL) status on 2024-06-30.\n\nEPEL 7 is no longer maintained, which means that it\nwill not receive any further security or bug fix updates.\n As a result we are closing this bug. |