LINUX.ORG.RU

История изменений

Исправление alvian, (текущая версия) :

Вот, что получил:

May 30 14:10:54 pbx.example.com systemd[1]: asterisk.service: Supervising proce                                       ss 23008 which is not our child. We'll most likely not notice when it exits.
May 30 14:10:54 pbx.example.com systemd[1]: Started LSB: Asterisk PBX.
Jun 02 17:16:39 pbx.example.com systemd[1]: asterisk.service: main process exit                                       ed, code=killed, status=9/KILL
Jun 02 17:16:39 pbx.example.com systemd[1]: Unit asterisk.service entered faile                                       d state.
Jun 02 17:16:39 pbx.example.com systemd[1]: asterisk.service failed.
Jun 02 17:16:43 pbx.example.com systemd[1]: Starting LSB: Asterisk PBX...
Jun 02 17:16:44 pbx.example.com asterisk[32027]: Starting asterisk: [  OK  ]
Jun 02 17:16:44 pbx.example.com systemd[1]: Can't open PID file /var/run/asteri                                    sk/asterisk.pid (yet?) after start: No such file or directory
Jun 02 17:16:44 pbx.example.com systemd[1]: asterisk.service: Supervising proce                                       ss 32065 which is not our child. We'll most likely not notice when it exits.
Jun 02 17:16:44 pbx.example.com systemd[1]: Started LSB: Asterisk PBX.

Дальше смотрю…


systemctl status asterisk.service


● asterisk.service - LSB: Asterisk PBX
   Loaded: loaded (/etc/rc.d/init.d/asterisk; bad; vendor preset: disabled)
   Active: active (running) since Thu 2022-06-02 17:23:47 MSK; 1min 16s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 3832 ExecStop=/etc/rc.d/init.d/asterisk stop (code=exited, status=0/SUCCESS)
  Process: 3864 ExecStart=/etc/rc.d/init.d/asterisk start (code=exited, status=0/SUCCESS)
 Main PID: 3897 (asterisk)
   CGroup: /system.slice/asterisk.service
           ├─3894 /bin/sh /usr/sbin/safe_asterisk -U asterisk -G asterisk -g
           └─3897 /usr/sbin/asterisk -f -U asterisk -G asterisk -g -vvvg -c

Jun 02 17:23:47 pbx.example.com systemd[1]: Stopped LSB: Asterisk PBX.
Jun 02 17:23:47 pbx.example.com systemd[1]: Starting LSB: Asterisk PBX...
Jun 02 17:23:47 pbx.example.com asterisk[3864]: Starting asterisk: [  OK  ]
Jun 02 17:23:47 pbx.example.com systemd[1]: Can't open PID file /var/run/asterisk/asterisk.pid (yet?) after st...ctory
Jun 02 17:23:47 pbx.example.com systemd[1]: asterisk.service: Supervising process 3897 which is not our child....xits.
Jun 02 17:23:47 pbx.example.com systemd[1]: Started LSB: Asterisk PBX.
Hint: Some lines were ellipsized, use -l to show in full.

Исходная версия alvian, :

Вот, что получил:

May 30 14:10:54 pbx.example.com systemd[1]: asterisk.service: Supervising proce                                       ss 23008 which is not our child. We'll most likely not notice when it exits.
May 30 14:10:54 pbx.example.com systemd[1]: Started LSB: Asterisk PBX.
Jun 02 17:16:39 pbx.example.com systemd[1]: asterisk.service: main process exit                                       ed, code=killed, status=9/KILL
Jun 02 17:16:39 pbx.example.com systemd[1]: Unit asterisk.service entered faile                                       d state.
Jun 02 17:16:39 pbx.example.com systemd[1]: asterisk.service failed.
Jun 02 17:16:43 pbx.example.com systemd[1]: Starting LSB: Asterisk PBX...
Jun 02 17:16:44 pbx.example.com asterisk[32027]: Starting asterisk: [  OK  ]
Jun 02 17:16:44 pbx.example.com systemd[1]: Can't open PID file /var/run/asteri                                    sk/asterisk.pid (yet?) after start: No such file or directory
Jun 02 17:16:44 pbx.example.com systemd[1]: asterisk.service: Supervising proce                                       ss 32065 which is not our child. We'll most likely not notice when it exits.
Jun 02 17:16:44 pbx.example.com systemd[1]: Started LSB: Asterisk PBX.