miniupnp.tuxfamily.org Forum Index miniupnp.tuxfamily.org
The forum about miniupnp and libnatpmp
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

minissdpd on nas4free
Goto page Previous  1, 2
 
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Compilation/Installation
View previous topic :: View next topic  
Author Message
alexey123



Joined: 05 Nov 2014
Posts: 8

PostPosted: Fri Dec 05, 2014 6:22 am    Post subject: Reply with quote

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 Laughing
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
View user's profile Send private message
miniupnp
Site Admin


Joined: 14 Apr 2007
Posts: 1589

PostPosted: Fri Dec 05, 2014 8:44 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    miniupnp.tuxfamily.org Forum Index -> miniupnpc Compilation/Installation All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP
© 2007 Thomas Bernard, author of MiniUPNP.