[Home]

Summary:ASTERISK-27968: systemd: asterisk.service
Reporter:seanchann.zhou (seanchann)Labels:
Date Opened:2018-07-17 22:37:04Date Closed:2018-07-20 12:02:28
Priority:MinorRegression?
Status:Closed/CompleteComponents:Contrib/General
Versions:15.5.0 Frequency of
Occurrence
Constant
Related
Issues:
Environment:centos 7.5Attachments:
Description:ExecStart=/usr/sbin/asterisk -qf -C /etc/asterisk/asterisk.conf . in  the asterisk.service file will be broken systemctl start asterisk.service. it always in foreground block systemctl return util timeout. so ExecStart may be start with  background?
Comments:By: Asterisk Team (asteriskteam) 2018-07-17 22:37:05.925-0500

Thanks for creating a report! The issue has entered the triage process. That means the issue will wait in this status until a Bug Marshal has an opportunity to review the issue. Once the issue has been reviewed you will receive comments regarding the next steps towards resolution.

A good first step is for you to review the [Asterisk Issue Guidelines|https://wiki.asterisk.org/wiki/display/AST/Asterisk+Issue+Guidelines] if you haven't already. The guidelines detail what is expected from an Asterisk issue report.

Then, if you are submitting a patch, please review the [Patch Contribution Process|https://wiki.asterisk.org/wiki/display/AST/Patch+Contribution+Process].

By: Joshua C. Colp (jcolp) 2018-07-18 04:40:43.382-0500

You contributed the unit file in question. Do you have any thoughts on this?

By: Corey Farrell (coreyfarrell) 2018-07-18 17:16:17.638-0500

When building Asterisk for a distro which runs systemd I recommend installing the systemd devel package.  This is needed to support {{Type=notify}} in the unit file.  If rebuilding with the devel package is not an option you can use {{Type=simple}} instead.  Systemd recommends disabling forking of daemons where possible.

I've posted a patch to improve contrib/systemd/README.txt.

By: seanchann.zhou (seanchann) 2018-07-19 02:49:11.035-0500

ok, I will try it! thanks

By: Friendly Automation (friendly-automation) 2018-07-20 12:02:29.693-0500

Change 9524 merged by Kevin Harwell:
contrib: Update systemd README.txt.

[https://gerrit.asterisk.org/9524|https://gerrit.asterisk.org/9524]

By: Friendly Automation (friendly-automation) 2018-07-20 12:02:52.869-0500

Change 9520 merged by Kevin Harwell:
contrib: Update systemd README.txt.

[https://gerrit.asterisk.org/9520|https://gerrit.asterisk.org/9520]

By: Friendly Automation (friendly-automation) 2018-07-20 12:03:04.125-0500

Change 9521 merged by Kevin Harwell:
contrib: Update systemd README.txt.

[https://gerrit.asterisk.org/9521|https://gerrit.asterisk.org/9521]