git: daemon(8): Make daemon aware of log rotation

Peeter Must peeterm at crater.dragonflybsd.org
Sun May 10 01:51:01 PDT 2020


commit 9f0202884c1ad1d00fb71dad7c6dc087f2fb4beb
Author: Peeter Must <karu.pruun at gmail.com>
Date:   Sun May 10 11:49:05 2020 +0300

    daemon(8): Make daemon aware of log rotation
    
    * Make daemon listen to SIGUSR1 so that when newsyslog
      has finished log rotation, it can send SIGUSR1 to
      daemon, who can then reopen the log file specified by
      the '-o' option.
    
    * Failure to open the log file will be logged through
      syslog with LOG_NOTICE. The next attempt to reopen
      the log file will be made upon receiving signal SIGUSR1.
    
    Reviewed-by: swildner, tuxillo, dillon, aly

Summary of changes:
 usr.sbin/daemon/daemon.c | 57 +++++++++++++++++++++++++++++++++++++++++++++---
 1 file changed, 54 insertions(+), 3 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9f0202884c1ad1d00fb71dad7c6dc087f2fb4beb


-- 
DragonFly BSD source repository


More information about the Commits mailing list