Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save csegura2011/fa40d3568c98af33b141a6470a2e95ba to your computer and use it in GitHub Desktop.
Save csegura2011/fa40d3568c98af33b141a6470a2e95ba to your computer and use it in GitHub Desktop.
Checking Asterisk service status on CentOS7-RHEL7
$ systemctl status asterisk
● asterisk.service - LSB: Asterisk PBX
Loaded: loaded (/etc/rc.d/init.d/asterisk; bad; vendor preset: disabled)
Active: active (running) since Wed 2017-07-19 19:29:42 -04; 1h 39min ago
Docs: man:systemd-sysv-generator(8)
Process: 889 ExecStart=/etc/rc.d/init.d/asterisk start (code=exited, status=0/SUCCESS)
Main PID: 942 (asterisk)
CGroup: /system.slice/asterisk.service
├─937 /bin/sh /usr/sbin/safe_asterisk
└─942 /usr/sbin/asterisk -f -vvvg -c
Jul 19 19:29:41 localhost.localdomain systemd[1]: Starting LSB: Asterisk PBX...
Jul 19 19:29:41 localhost.localdomain asterisk[889]: Starting asterisk:
Jul 19 19:29:41 localhost.localdomain systemd[1]: PID file /var/run/asterisk/asterisk.pid not readable (yet?) after start.
Jul 19 19:29:42 localhost.localdomain systemd[1]: asterisk.service: Supervising process 942 which is not our child. We'll most likely not notice when it exits.
Jul 19 19:29:42 localhost.localdomain systemd[1]: Started LSB: Asterisk PBX.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment