On 2015/07/13 16:20, Indunil Jayasooriya wrote:
> 
> Hmm,  thanks for your reply. this is the error.
> 
> # newsyslog -v -F
> 
> newsyslog: /etc/newsyslog.conf:18: unrecognized field: 30
> 
> 
> 
> here's my full file
> 
> 
> # cat /etc/
> newsyslog.conf                                                                
>                                                                              
> #       $OpenBSD: newsyslog.conf,v 1.29 2011/04/14 20:32:34 sthen Exp $
> #
> # configuration file for newsyslog
> #
> # logfile_name          owner:group     mode count size when  flags
> /var/cron/log           root:wheel      600  3     10   *     Z
> /var/log/aculog         uucp:dialer     660  7     *    24    Z
> /var/log/authlog        root:wheel      640  7     *    168   Z
> /var/log/daemon                         640  5     30   *     Z
> /var/log/lpd-errs                       640  7     10   *     Z
> /var/log/maillog                        600  4     *    $M1D0 Z
> /var/log/messages                       644  4     *    $M1D0 Z
> /var/log/secure                         600  7     *    168   Z
> /var/log/wtmp                           644  7     *    $W6D4 B
> /var/log/xferlog                        640  7     250  *     Z
> /var/log/ppp.log                        640  7     250  *     Z
> /var/log/pflog                          600  3     250  *     ZB "pkill
> -HUP -u root -U root -t - -x pflogd"
> /var/squid/logs/access.log      _squid:_squid   640     14      *      
> @T00    Z       /var/squid/logs/squid.pid       30
> 
> 
> any help to correct it.

"man syslog.conf" says this:

     signal            Specify the signal to send to the process instead of
                       SIGHUP.  Signal names must start with “SIG” and be the
                       signal name, not the number, e.g., SIGUSR1.

So it looks like you need to use a name, not the number 30.

Reply via email to