ситуация
Код: Выделить всё
[root@localhost ~]# service asterisk status
asterisk dead but subsys locked
[root@localhost ~]# service asterisk status
asterisk (pid 15789) is running...
[root@localhost ~]# service asterisk status
asterisk (pid 16342) is running...
[root@localhost ~]# service asterisk status
asterisk (pid 16883) is running...
[root@localhost ~]# service asterisk status
asterisk dead but subsys locked
[root@localhost ~]# service asterisk status
asterisk dead but subsys locked
[root@localhost ~]# service asterisk status
asterisk dead but subsys locked
[root@localhost ~]# service asterisk stop
Код: Выделить всё
ps aux | grep asterisk
root 17418 0.1 0.0 5132 960 pts/0 S 16:28 0:00 /bin/sh /usr/sbin/safe_asterisk
root 26940 0.0 0.0 4420 784 pts/0 S+ 16:32 0:00 grep asterisk
ВСЕ ЧТО ИЗ WARNING
Код: Выделить всё
Parsing '/etc/asterisk/res_config_mysql.conf': Found
[Apr 4 16:33:15] WARNING[28925]: res_config_mysql.c:1505 load_mysql_config: MySQL RealTime: No database user found, using 'asterisk' as default.
[Apr 4 16:33:15] WARNING[28925]: res_config_mysql.c:1511 load_mysql_config: MySQL RealTime: No database password found, using 'asterisk' as default.
[Apr 4 16:33:15] WARNING[28925]: res_config_mysql.c:1517 load_mysql_config: MySQL RealTime: No database host found, using localhost via socket.
[Apr 4 16:33:15] WARNING[28925]: res_config_mysql.c:1523 load_mysql_config: MySQL RealTime: No database name found, using 'asterisk' as default.
[Apr 4 16:33:15] WARNING[28925]: res_config_mysql.c:1529 load_mysql_config: MySQL RealTime: No database port found, using 3306 as default.
[Apr 4 16:33:15] WARNING[28925]: res_config_mysql.c:1541 load_mysql_config: MySQL RealTime: No database socket found, using '/var/lib/mysql/mysql.sock' as default.
[Apr 4 16:33:15] WARNING[28925]: res_config_mysql.c:1546 load_mysql_config: MySQL RealTime: No database socket found (and unable to detect a suitable path).
[Apr 4 16:33:15] NOTICE[28925]: config.c:2584 ast_config_engine_register: Registered Config Engine mysql
== MySQL RealTime driver loaded.
LOG
Код: Выделить всё
[Apr 4 15:39:30] Asterisk 11.25.1 built by root @ localhost.localdomain on a i686 running Linux on 2017-01-24 00:43:36 UTC
[Apr 4 15:39:30] NOTICE[16300] cdr.c: CDR simple logging enabled.
[Apr 4 15:39:30] NOTICE[16300] loader.c: 199 modules will be loaded.
[Apr 4 15:39:30] NOTICE[16300] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Apr 4 15:39:30] WARNING[16300] res_config_mysql.c: MySQL RealTime: No database user found, using 'asterisk' as default.
[Apr 4 15:39:30] WARNING[16300] res_config_mysql.c: MySQL RealTime: No database password found, using 'asterisk' as default.
[Apr 4 15:39:30] WARNING[16300] res_config_mysql.c: MySQL RealTime: No database host found, using localhost via socket.
[Apr 4 15:39:30] WARNING[16300] res_config_mysql.c: MySQL RealTime: No database name found, using 'asterisk' as default.
[Apr 4 15:39:30] WARNING[16300] res_config_mysql.c: MySQL RealTime: No database port found, using 3306 as default.
[Apr 4 15:39:30] WARNING[16300] res_config_mysql.c: MySQL RealTime: No database socket found, using '/var/lib/mysql/mysql.sock' as default.
[Apr 4 15:39:30] WARNING[16300] res_config_mysql.c: MySQL RealTime: No database socket found (and unable to detect a suitable path).
[Apr 4 15:39:30] NOTICE[16300] config.c: Registered Config Engine mysql
[Apr 4 15:39:30] NOTICE[16300] config.c: Registered Config Engine sqlite3
[Apr 4 15:39:30] NOTICE[16300] config.c: Registered Config Engine curl
[Apr 4 15:39:31] NOTICE[16300] chan_skinny.c: Configuring skinny from skinny.conf
[Apr 4 15:39:31] NOTICE[16300] cel_custom.c: No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.
[Apr 4 15:39:35] Asterisk 11.25.1 built by root @ localhost.localdomain on a i686 running Linux on 2017-01-24 00:43:36 UTC
[Apr 4 15:39:35] NOTICE[16391] cdr.c: CDR simple logging enabled.
[Apr 4 15:39:35] NOTICE[16391] loader.c: 199 modules will be loaded.
[Apr 4 15:39:35] NOTICE[16391] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Apr 4 15:39:35] WARNING[16391] res_config_mysql.c: MySQL RealTime: No database user found, using 'asterisk' as default.
[Apr 4 15:39:35] WARNING[16391] res_config_mysql.c: MySQL RealTime: No database password found, using 'asterisk' as default.
[Apr 4 15:39:35] WARNING[16391] res_config_mysql.c: MySQL RealTime: No database host found, using localhost via socket.
[Apr 4 15:39:35] WARNING[16391] res_config_mysql.c: MySQL RealTime: No database name found, using 'asterisk' as default.
[Apr 4 15:39:35] WARNING[16391] res_config_mysql.c: MySQL RealTime: No database port found, using 3306 as default.
[Apr 4 15:39:35] WARNING[16391] res_config_mysql.c: MySQL RealTime: No database socket found, using '/var/lib/mysql/mysql.sock' as default.
[Apr 4 15:39:35] WARNING[16391] res_config_mysql.c: MySQL RealTime: No database socket found (and unable to detect a suitable path).
[Apr 4 15:39:35] NOTICE[16391] config.c: Registered Config Engine mysql
[Apr 4 15:39:35] NOTICE[16391] config.c: Registered Config Engine sqlite3
[Apr 4 15:39:35] NOTICE[16391] config.c: Registered Config Engine curl
[Apr 4 15:39:35] NOTICE[16391] chan_skinny.c: Configuring skinny from skinny.conf
[Apr 4 15:39:35] NOTICE[16391] cel_custom.c: No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.
[Apr 4 15:39:39] Asterisk 11.25.1 built by root @ localhost.localdomain on a i686 running Linux on 2017-01-24 00:43:36 UTC
[Apr 4 15:39:40] NOTICE[16477] cdr.c: CDR simple logging enabled.
[Apr 4 15:39:40] NOTICE[16477] loader.c: 199 modules will be loaded.
[Apr 4 15:39:40] NOTICE[16477] res_smdi.c: No SMDI interfaces are available to listen on, not starting SMDI listener.
[Apr 4 15:39:40] WARNING[16477] res_config_mysql.c: MySQL RealTime: No database user found, using 'asterisk' as default.
[Apr 4 15:39:40] WARNING[16477] res_config_mysql.c: MySQL RealTime: No database password found, using 'asterisk' as default.
[Apr 4 15:39:40] WARNING[16477] res_config_mysql.c: MySQL RealTime: No database host found, using localhost via socket.
[Apr 4 15:39:40] WARNING[16477] res_config_mysql.c: MySQL RealTime: No database name found, using 'asterisk' as default.
[Apr 4 15:39:40] WARNING[16477] res_config_mysql.c: MySQL RealTime: No database port found, using 3306 as default.
[Apr 4 15:39:40] WARNING[16477] res_config_mysql.c: MySQL RealTime: No database socket found, using '/var/lib/mysql/mysql.sock' as default.
[Apr 4 15:39:40] WARNING[16477] res_config_mysql.c: MySQL RealTime: No database socket found (and unable to detect a suitable path).
[Apr 4 15:39:40] NOTICE[16477] config.c: Registered Config Engine mysql
[Apr 4 15:39:40] NOTICE[16477] config.c: Registered Config Engine sqlite3
[Apr 4 15:39:40] NOTICE[16477] config.c: Registered Config Engine curl
[Apr 4 15:39:40] NOTICE[16477] chan_skinny.c: Configuring skinny from skinny.conf
[Apr 4 15:39:40] NOTICE[16477] cel_custom.c: No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.