Asterisk .PID issue

My systemctl status shows as below =>

[root@srv-1-ast29vc ~]# systemctl status asterisk
● asterisk.service - LSB: Asterisk PBX
Loaded: loaded (/etc/rc.d/init.d/asterisk; bad; vendor preset: disabled)
Active: active (running) since Fri 2021-08-06 17:36:56 UTC; 3min 0s ago
Docs: man:systemd-sysv-generator(8)
Process: 1183 ExecStart=/etc/rc.d/init.d/asterisk start (code=exited, status=0/SUCCESS)
Main PID: 1277 (asterisk)
CGroup: /system.slice/asterisk.service
├─1272 /bin/sh /usr/sbin/safe_asterisk
└─1277 /usr/sbin/asterisk -f -vvvg -c

Aug 06 17:36:56 srv-1-ast29vc systemd[1]: Starting LSB: Asterisk PBX…
Aug 06 17:36:56 srv-1-ast29vc asterisk[1183]: Starting asterisk:
Aug 06 17:36:56 srv-1-ast29vc systemd[1]: Can’t open PID file /var/run/asterisk/asterisk.pid (yet?) after start: No such file or directory
Aug 06 17:36:56 srv-1-ast29vc systemd[1]: asterisk.service: Supervising process 1277 which is not our child. We’ll most likely not notice when it exits.
Aug 06 17:36:56 srv-1-ast29vc systemd[1]: Started LSB: Asterisk PBX.

I would like to know about this => Aug 06 17:36:56 srv-1-ast29vc systemd[1]: Can’t open PID file /var/run/asterisk/asterisk.pid (yet?) after start: No such file or directory

and this =>
Aug 06 17:36:56 srv-1-ast29vc systemd[1]: asterisk.service: Supervising process 1277 which is not our child. We’ll most likely not notice when it exits.

Are those any issues or error/ fatal error?

Have a look at the file and directory permissions. In case your PBX becomes asterisk:asterisk a couple of directories need sufficient read and write permissions.

If you can start Asterisk as root (by possibly commenting out runuser/rungroup in asterisk.conf) and things work as expected, then you know what your problem is. Based on what you have written, it’s difficult to diagnose the problem at the moment.

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