tutorials:3.2.x:syslog
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tutorials:3.2.x:syslog [2011/12/20 10:41] – [Kamailio with Syslog and Log Rotate] 85.178.76.94 | tutorials:3.2.x:syslog [2022/03/23 08:55] (current) – [Log Rotate] miconda | ||
---|---|---|---|
Line 75: | Line 75: | ||
Otherwise, add the piece of config above in **/ | Otherwise, add the piece of config above in **/ | ||
+ | For **syslog-ng** the appropriate pid file has to be used, should be like: | ||
+ | |||
+ | < | ||
+ | / | ||
+ | missingok | ||
+ | size=50M | ||
+ | create 0644 root root | ||
+ | postrotate | ||
+ | / | ||
+ | endscript | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | You can test the existence of pid files before using kill, like: | ||
+ | |||
+ | < | ||
+ | if [ -f / | ||
+ | kill -HUP `cat / | ||
+ | fi; | ||
+ | </ | ||
+ | |||
+ | |||
+ | For **rsyslogd**: | ||
+ | |||
+ | < | ||
+ | / | ||
+ | daily | ||
+ | missingok | ||
+ | rotate 14 | ||
+ | compress | ||
+ | delaycompress | ||
+ | create 0644 root adm | ||
+ | postrotate | ||
+ | / | ||
+ | endscript | ||
+ | } | ||
+ | </ |
tutorials/3.2.x/syslog.1324377663.txt.gz · Last modified: 2011/12/20 10:41 by 85.178.76.94