Moderators: enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, s0lid
/etc/init.d/asterisk restart
/var/log/messages
/var/log/dmesg
/var/log/boot
cd /var/log
ls -lth
[root@go log]# ls -lth
total 18M
-rw------- 1 root root 367K Mar 18 11:29 cron
-rw------- 1 root root 197K Mar 18 11:28 maillog
-rw------- 1 root root 1.3K Mar 18 11:21 secure
-rw-r--r-- 1 root root 143K Mar 18 11:21 lastlog
-rw-rw-r-- 1 root utmp 173K Mar 18 11:21 wtmp
-rw------- 1 root utmp 3.0M Mar 18 11:21 btmp
-rw------- 1 root root 65K Mar 18 10:53 messages
-rw-r--r-- 1 root root 18K Mar 18 07:48 rpmpkgs
drwxr-xr-x 3 root root 4.0K Mar 18 07:47 astguiclient
drwxrwxrwx 2 munin munin 4.0K Mar 18 07:43 munin
drwxrwxrwx 4 asterisk asterisk 4.0K Mar 18 07:43 asterisk
-rw-r----- 1 mysql mysql 20K Mar 18 06:17 mysqld.log
-rw-r----- 1 root root 5.6K Mar 18 06:12 acpid
-rw-r--r-- 1 root root 955 Mar 18 06:12 dkms_autoinstaller
-rw-r--r-- 1 root root 11K Mar 18 06:12 brcm-iscsi.log
-rw-r--r-- 1 root root 22K Mar 18 06:12 dmesg
drwxr-xr-x 2 root root 4.0K Mar 18 04:58 sa
-rw------- 1 root root 0 Mar 17 03:56 boot.log
-rw------- 1 root root 0 Mar 17 03:56 spooler
-rw------- 1 root root 0 Mar 17 03:56 xferlog
drwx------ 2 root root 4.0K Mar 17 03:56 httpd
-rw------- 1 root root 3.5M Mar 17 03:56 maillog.1
-rw------- 1 root root 6.1M Mar 17 03:56 cron.1
-rw------- 1 root root 418K Mar 17 03:37 messages.1
-rw------- 1 root root 2.7M Mar 17 02:45 secure.1
drwxrwxrwx 2 root root 4.0K Mar 17 01:08 goautodial
-rw-r--r-- 1 root root 18K Mar 16 04:11 rpmpkgs.1
-rw------- 1 root root 0 Mar 13 12:06 xferlog.1
drwxr-xr-x 2 root root 4.0K Mar 11 14:43 prelink
-rw------- 1 root root 0 Mar 11 12:42 boot.log.1
-rw------- 1 root root 311K Mar 11 12:39 anaconda.log
-rw------- 1 root root 27K Mar 11 12:39 anaconda.syslog
drwxr-xr-x 2 root root 4.0K Mar 11 12:38 pm
-rw------- 1 root root 2.4K Mar 11 12:38 faillog
drwxr-xr-x 2 root root 4.0K Mar 11 12:35 mail
-rw------- 1 root root 0 Mar 11 12:35 spooler.1
-rw------- 1 root root 0 Mar 11 12:34 tallylog
-rw-r--r-- 1 root root 763 Mar 11 12:33 scrollkeeper.log
drwxr-x--- 2 root root 4.0K Mar 6 2011 audit
drwx------ 2 root root 4.0K Jan 21 2009 ppp
drwxr-xr-x 2 root root 4.0K Nov 11 2007 conman
drwxr-xr-x 2 root root 4.0K Nov 11 2
tail -500 filename
gmcust3 wrote::-((( But why its getting stucked after asterisk ( ?
does not make asterisk the problem. asterisk is just the last thing to start in that checklist. the next checklist is not visible, so asterisk remains on the screen and appears to be the problem. but it may not be. it is very likely asterisk started successfully and one of the myriad other items that comes after it dies, leaving asterisk still visible on the screen.williamconley wrote:... asterisk starts in under a second. But you should be aware that the last item loaded by the system visually will "just stay there" while the rest of the actual OS (things like "cron" and "iptables") start up on various operating systems. Processes that are not itemized will continue to start even though the last shown entry may be "asterisk". If you are not sure ... modify the system to NOT start that last process, and the previous process will now be "last" ... and will take just as long.
I have had a few client boxes that had an issue with DNS. And in "iptables" security, they had a domain name (to allow a carrier to send packets to the server ...). The iptables system would take 15 minutes to "fail" to look up the IP address of the domain before finally giving up.
It could be any process in the system ... you can try turning off "services" one at a time to see which one it is (be sure you write down which ones are there before you begin so you can put it all back!).
Or just Build A New Server (after all, the software is free ...).
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
### uncomment If kernel RAM drive is enabled
#mke2fs -m 0 /dev/ram0
#mount /dev/ram0 /var/spool/asterisk/monitor
#mkdir /var/spool/asterisk/monitor/DONE
#mkdir /var/spool/asterisk/monitor/ORIG
# Disable console blanking and powersaving
/usr/bin/setterm -blank
/usr/bin/setterm -powersave off
/usr/bin/setterm -powerdown
### start time server
/usr/sbin/ntpdate -u pool.ntp.org
### ntpd
### start apache, mysql and vsftpd
/etc/init.d/httpd start
/etc/init.d/mysqld start
/etc/init.d/vsftpd start
### roll the Asterisk logs upon reboot
/usr/share/astguiclient/ADMIN_restart_roll_logs.pl
### clear the server-related records from the database
/usr/share/astguiclient/AST_reset_mysql_vars.pl
### load timer source
modprobe zaptel
#modprobe wcfxo
modprobe ztdummy
ztcfg -vvvvvvvvvvvv
### sybsys local login
touch /var/lock/subsys/local
### sleep for 20 seconds before launching Asterisk
sleep 20
### start up asterisk
/usr/share/astguiclient/start_asterisk_boot.pl
## Repair Mysql :
## =============================
mysqlcheck --auto-repair --check --optimize --all-database -pvicidialnow
/usr/share/astguiclient/AST_flush_DBqueue.pl -q
/usr/share/astguiclient/AST_VDhopper.pl -q
/usr/share/astguiclient/AST_reset_mysql_vars.pl
/usr/share/astguiclient/AST_DB_optimize.pl
/usr/bin/find /var/log/astguiclient -maxdepth 1 -type f -mtime +2 -print | xargs rm -f
/usr/bin/find /var/log/asterisk -maxdepth 3 -type f -mtime +2 -print | xargs rm -f
/usr/bin/find / -maxdepth 1 -name "screenlog.0*" -mtime +4 -print | xargs rm -f
Return to ViciDialNow - GoAutoDial
Users browsing this forum: No registered users and 98 guests