Systemctl Status Asterisk

Greetings,

I did a systemctl status asterisk and got these messages. It is saying asterisk is not running (dead) yet it appears to be working beautifully. Could someone tell me if I have problem for the error message, please?

Thanks,
Quaz

[[email protected] ~]# systemctl status asterisk
? asterisk.service - LSB: Asterisk PBX
Loaded: loaded (/etc/rc.d/init.d/asterisk; bad; vendor preset: disabled)
Active: inactive (dead)
Docs: man:systemd-sysv-generator(8)
[[email protected] ~]# systemctl status asterisk
? asterisk.service - LSB: Asterisk PBX
Loaded: loaded (/etc/rc.d/init.d/asterisk; bad; vendor preset: disabled)
Active: inactive (dead)
Docs: man:systemd-sysv-generator(8)
[[email protected] ~]# systemctl start asterisk
Job for asterisk.service failed. See “systemctl status asterisk.service” and “journalctl -xe” for details.
[[email protected] ~]# systemctl status asterisk.service
? asterisk.service - LSB: Asterisk PBX
Loaded: loaded (/etc/rc.d/init.d/asterisk; bad; vendor preset: disabled)
Active: failed (Result: protocol) since Fri 2022-06-03 12:34:24 EDT; 18s ago
Docs: man:systemd-sysv-generator(8)
Process: 8819 ExecStart=/etc/rc.d/init.d/asterisk start (code=exited, status=0/SUCCESS)

Jun 03 12:34:24 europa.davetandt.com systemd[1]: Starting LSB: Asterisk PBX…
Jun 03 12:34:24 europa.davetandt.com asterisk[8819]: Asterisk is already running.
Jun 03 12:34:24 europa.davetandt.com systemd[1]: New main PID 2448 does not belong to service, and PID file is not owned by root. Refusing.
Jun 03 12:34:24 europa.davetandt.com systemd[1]: New main PID 2448 does not belong to service, and PID file is not owned by root. Refusing.
Jun 03 12:34:24 europa.davetandt.com systemd[1]: Failed to start LSB: Asterisk PBX.
Jun 03 12:34:24 europa.davetandt.com systemd[1]: Unit asterisk.service entered failed state.
Jun 03 12:34:24 europa.davetandt.com systemd[1]: asterisk.service failed.
[[email protected] ~]#

If you are using the distro or FreePBX as recommended systemd (or related subsystem for any that don’t use systemd) is NOT in control of asterisk. Asterisk is started/stopped by fwconsole

Thanks, jfinstrom.

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.