[asterisk-users] Asterisk start via systemd fails, but its running

TTT lists at telium.io
Mon Mar 7 20:40:43 CST 2022


I have a fresh Asterisk 18 install on a fresh OS (AWS Linux 2).  I used the
service file from contrib directory and commented out user and group
settings so it runs under root.

 

When I start Asterisk via systemd it waits a long time and then times out.
Reporting failure to the command line.  Result of journalctl -xe is below.

 

However, the asterisk executable has started and is running, I can connect
to it via 'asterisk -r'.  Is there a change needed to the service file?
(Anyone tested under Amazon Linux 2)

 

 

Mar 08 02:33:04 ip-172-31-25-10.us-east-2.compute.internal dhclient[2858]:
XMT: Solicit on eth0, interval 119780ms.

Mar 08 02:33:55 ip-172-31-25-10.us-east-2.compute.internal systemd[1]:
asterisk.service start operation timed out. Terminating.

Mar 08 02:33:55 ip-172-31-25-10.us-east-2.compute.internal systemd[1]:
Failed to start Asterisk PBX and telephony daemon..

-- Subject: Unit asterisk.service has failed

-- Defined-By: systemd

-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

--

-- Unit asterisk.service has failed.

--

-- The result is failed.

Mar 08 02:33:55 ip-172-31-25-10.us-east-2.compute.internal systemd[1]: Unit
asterisk.service entered failed state.

Mar 08 02:33:55 ip-172-31-25-10.us-east-2.compute.internal systemd[1]:
asterisk.service failed.

Mar 08 02:33:59 ip-172-31-25-10.us-east-2.compute.internal systemd[1]:
asterisk.service holdoff time over, scheduling restart.

Mar 08 02:33:59 ip-172-31-25-10.us-east-2.compute.internal systemd[1]:
Stopped Asterisk PBX and telephony daemon..

-- Subject: Unit asterisk.service has finished shutting down

-- Defined-By: systemd

-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

--

-- Unit asterisk.service has finished shutting down.

Mar 08 02:33:59 ip-172-31-25-10.us-east-2.compute.internal systemd[1]:
Starting Asterisk PBX and telephony daemon....

-- Subject: Unit asterisk.service has begun start-up

-- Defined-By: systemd

-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

--

-- Unit asterisk.service has begun starting up.

Mar 08 02:33:59 ip-172-31-25-10.us-east-2.compute.internal kernel: xfs
filesystem being remounted at /tmp supports timestamps until 2038
(0x7fffffff)

Mar 08 02:33:59 ip-172-31-25-10.us-east-2.compute.internal kernel: xfs
filesystem being remounted at /var/tmp supports timestamps until 2038
(0x7fffffff)

Mar 08 02:35:04 ip-172-31-25-10.us-east-2.compute.internal dhclient[2858]:
XMT: Solicit on eth0, interval 119400ms.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20220308/55d38d42/attachment.html>


More information about the asterisk-users mailing list