How are you starting rtpengine? Via systemd? If so, the systemd unit explicitly enables logging to stderr (overriding the config file) as systemd is in charge of handling the logging. So in this case, either override the systemd unit, or tell systemd to send the logging elsewhere.
Cheers
--
You received this message because you are subscribed to a topic in the Google Groups "rtpengine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rtpengine/GprCOY21TPQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rtpengine+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rtpengine/050fd852-e18b-439a-b5cc-41587a50e433%40sipwise.com.
For more options, visit https://groups.google.com/d/optout.
###############
#### RULES ####
###############
#
# First some standard log files. Log by facility.
#
local0.* -/var/log/sipsecure/kamailio.log
local2.* -/var/log/sipsecure/rtpengine.log
local3.* -/var/log/sipsecure/rtpengine_cdr.log
local1.* -/var/log/sudo.log
auth,authpriv.*;local1.none -/var/log/auth.log
.;auth,authpriv.none -/var/log/syslog
#cron.* /var/log/cron.log
daemon.* -/var/log/daemon.log
kern.* -/var/log/kern.log
lpr.* -/var/log/lpr.log
mail.* -/var/log/mail.log
user.* -/var/log/user.log
DearYes it is with systemd
Then do I need to force
log-stderr = false to stop to get log to daemon ?
You need to go through systemd.
Use `sudo systemctl edit rtpengine` to create or edit an override file. Use a [Service] section and either override the `ExecStart` line (removing the -E option which is what forces logging to stderr), or better yet tell systemd directly to use a different syslog facility:
[Service]
SyslogFacility=local2
You can find more details in the systemd docs, e.g. https://www.freedesktop.org/software/systemd/man/systemd.exec.html
Cheers
kamailio:/etc$ sudo systemctl edit rtpengine
Editing "/etc/systemd/system/rtpengine-daemon.service.d/override.conf" canceled: temporary file is empty.
--
You received this message because you are subscribed to a topic in the Google Groups "rtpengine" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/rtpengine/GprCOY21TPQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to rtpengine+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rtpengine/cdbb1d9b-24f9-f6f7-a2a7-c39ee19c55d0%40sipwise.com.