View previous topic :: View next topic |
Author |
Message |
alex.blackbit Advocate
Joined: 26 Jul 2005 Posts: 2397
|
Posted: Mon Jun 04, 2007 1:50 pm Post subject: asterisk not logging when started from init.d |
|
|
hello everybody!
i am trying to get asterisk working and have some trouble with it.
one thing i notice is that it writes to the configured log-files correctly when i run it from the console.
when i start it with "/etc/init.d/asterisk start" it does not. very strange.
i believe i do some n00b error here, does anybody know which?
and... after installation there were no config files in /etc/asterisk... i copies SOME from /usr/share/doc/asterisk-1.2.17/conf/
i used the howto from gentoo-wiki.com.
who knows more than me?
regards
--alex |
|
Back to top |
|
|
geforce l33t
Joined: 29 Dec 2003 Posts: 653 Location: Canada
|
Posted: Fri Jun 22, 2007 6:18 am Post subject: |
|
|
usually the daemon's start option are in /etc/conf.d/daemonName. Maybe you'll find something there. |
|
Back to top |
|
|
p4m n00b
Joined: 10 Feb 2004 Posts: 14
|
Posted: Wed Jul 11, 2007 11:33 pm Post subject: |
|
|
alex.blackbit> I got the same problem with logs and I've found that is related with wrong permissions in /var/log/asterisk:
Code: | asterisk asterisk # ls -la
total 24
drwxr-x--- 4 asterisk asterisk 4096 Jul 11 21:06 .
drwxr-xr-x 5 root root 4096 Jul 11 20:56 ..
drwxr-x--- 2 asterisk asterisk 4096 Jul 11 20:56 cdr-csv
drwxr-x--- 2 asterisk asterisk 4096 Jul 11 20:56 cdr-custom
-rw-r--r-- 1 root root 0 Jul 11 21:06 event_log
-rw-r--r-- 1 root root 2920 Jul 12 02:13 messages
-rw-r--r-- 1 root root 266 Jul 12 02:13 queue_log |
Perhaps the first time I've started asterisk as root and the log-files has been created owned by root
I've corrected this with: chown asterisk:asterisk /var/log/asterisk/*
No problem with the config files: they are all correctly installed by "emerge asterisk"
My USE FLAGS are: alsa bri rtc |
|
Back to top |
|
|
alex.blackbit Advocate
Joined: 26 Jul 2005 Posts: 2397
|
Posted: Thu Jul 12, 2007 10:07 am Post subject: |
|
|
thx for the reply. i will check when i get home from work. |
|
Back to top |
|
|
|