View previous topic :: View next topic |
Author |
Message |
alexey123
Joined: 05 Nov 2014 Posts: 8
|
Posted: Fri Dec 05, 2014 6:22 am Post subject: |
|
|
Wow! Thank you, work perfect.
I also need a little advice/idea about log system. Minissdpd sand log to syslog as daemon, but I have NAS4Free, not FreeBSD. It work from mfsroot with syslog.conf , defined as
Quote: | local3.* %/var/log/sshd.log
local4.* %/var/log/rsyncd.log
local5.* %/var/log/smartd.log
ftp.* %/var/log/ftp.log
daemon.* %/var/log/daemon.log
*.notice;kern.debug;lpr.info;mail.crit;mail.info;news.err;local0.none;local7.none %/var/log/system.log
security.* %/var/log/system.log
auth.info;authpriv.info %/var/log/system.log
*.emerg * |
As result - minissdpd log messages show in system.log and in daemon.log.
NAS4Free system.log and daemon.log organized as circular log files, and very chatty minissdpd fills almost all
I can compille minissdpd with log LOCAL7, for example, then during boot replace syslog.conf with defined LOCAL7 as minissdpd.log, create circular file with size 64kB for it and kill syslog. Daemon will restart with my configuration, but I feel that something is wrong in this scenario.. I need advice |
|
Back to top |
|
 |
miniupnp Site Admin
Joined: 14 Apr 2007 Posts: 1593
|
Posted: Fri Dec 05, 2014 8:44 am Post subject: |
|
|
you should Code: | #define LOG_MINISSDPD LOG_LOCAL7 | in the config.h
and then add to syslog.conf Code: | local7.info /var/log/minissdpd |
if you think minissdpd is too chatty, you can adjust log level (debug/info/notice/warning/err/crit/alert/emerg) _________________ Main miniUPnP author.
https://miniupnp.tuxfamily.org/ |
|
Back to top |
|
 |
|
|
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
|
Powered by phpBB © 2001, 2005 phpBB Group
© 2007 Thomas Bernard, author of MiniUPNP.
|