vi /etc/rsyslog.conf
- edit & add
local0.* -/var/log/kamailio/kamailio.log
vi /etc/logrotate.d/kamailio
- new
/var/log/kamailio/kamailio.log {
missingok
size=50M
create 0644 root root
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript
}
reboot
/usr/local/sbin/kamctl start
/usr/local/sbin/kamailio -ddddddddddddddd -D 2
댓글 없음:
댓글 쓰기