Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
asterisk not logging when started from init.d
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Mon Jun 04, 2007 1:50 pm    Post subject: asterisk not logging when started from init.d Reply with quote

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
View user's profile Send private message
geforce
l33t
l33t


Joined: 29 Dec 2003
Posts: 653
Location: Canada

PostPosted: Fri Jun 22, 2007 6:18 am    Post subject: Reply with quote

usually the daemon's start option are in /etc/conf.d/daemonName. Maybe you'll find something there.
Back to top
View user's profile Send private message
p4m
n00b
n00b


Joined: 10 Feb 2004
Posts: 14

PostPosted: Wed Jul 11, 2007 11:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
alex.blackbit
Advocate
Advocate


Joined: 26 Jul 2005
Posts: 2397

PostPosted: Thu Jul 12, 2007 10:07 am    Post subject: Reply with quote

thx for the reply. i will check when i get home from work.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum