]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commit
Restart logging after restoring backup
authorTim FitzGeorge <ipfr@tfitzgeorge.me.uk>
Fri, 11 Oct 2019 18:42:05 +0000 (19:42 +0100)
committerArne Fitzenreiter <arne_f@ipfire.org>
Mon, 14 Oct 2019 17:27:54 +0000 (17:27 +0000)
commit28797d488e51901076a350242c014ff140e58d5f
treeb5e6eca334c2f714cdd4786790f680738310c539
parent57ff953341c1ffc7114bd256e34b2982ad6687e2
Restart logging after restoring backup

Send SIGHUP to syslogd and suricata after restoring backup.  This ensures that
if the restored backup includes log files that any new log messages get
appended to the restored log files.  Otherwise they will be written to the
old log files which are pending deletion.

httpd is told to restart using apachectl, which is the equivalent of sending
a signal. 'graceful' (USR1) is used rather than 'restart' (HUP) because the
latter immediately kills the process restoring the backup, preventing
converters from running.

Fixes: 12196
Signed-off-by: Tim FitzGeorge <ipfr@tfitzgeorge.me.uk>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/backup/backup.pl