/etc/newsyslog.conf and denyhosts

Glenn Sieb ges+lists at wingfoot.org
Tue May 3 19:02:40 UTC 2011


On 5/3/11 2:32 PM, Janos Dohanics wrote:
>> Denyhosts has to be informed that the logfile has changed, so that
>> it can close and re-open the logfile.   It may be possible by
>> sending it a 'signal', or you may have to kill/restart it.  See
>> the documentation for denyhosts.
>> 
>> Newsyslog itself does _not_ notify/restart any daemons  you have
>> to do this yourself.

>From the man page for newsyslog.conf:

     path_to_pid_file
      This optional field specifies the file name containing a daemon's
      process ID or to find a group process ID if the U flag was speci-
      fied.  If this field is present, a signal_number is sent the
      process ID contained in this file.  If this field is not present,
      then a SIGHUP signal will be sent to syslogd(8), unless the N
      flag has been specified.  This field must start with `/' in order
      to be recognized properly.

     signal_number
      This optional field specifies the signal number that will be sent
      to the daemon process (or to all processes in a process group, if
      the U flag was specified).  If this field is not present, then a
      SIGHUP signal will be sent.

--Glenn


More information about the freebsd-questions mailing list