Skip to content

Commit

Permalink
Fix logrotate service reload
Browse files Browse the repository at this point in the history
  • Loading branch information
ondj committed Mar 11, 2022
1 parent 5ea5c20 commit 9d30ee1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ COPY rsyslog.conf /etc/
COPY snuffleupagus-misp.rules /etc/php.d/
COPY .jobber /root/
COPY supervisor.ini /etc/supervisord.d/misp.ini
COPY logrotate/* /etc/logrotate.d/

ARG CACHEBUST=1
ARG MISP_VERSION=develop
Expand All @@ -64,6 +65,7 @@ RUN chmod u=r,g=r,o=r /var/www/MISP/app/Config/* && \
chmod 644 /etc/rsyslog.conf && \
chmod 644 /etc/httpd/conf.d/misp.conf && \
chmod 644 /etc/php.d/snuffleupagus-misp.rules && \
chmod 644 /etc/logrotate.d/* && \
chmod 644 /root/.jobber && \
mkdir /run/php-fpm

Expand Down
9 changes: 9 additions & 0 deletions logrotate/httpd
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/var/log/httpd/*log {
missingok
notifempty
sharedscripts
delaycompress
postrotate
/usr/bin/supervisorctl signal hup httpd > /dev/null 2>/dev/null || true
endscript
}
12 changes: 12 additions & 0 deletions logrotate/syslog
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/var/log/cron
/var/log/maillog
/var/log/messages
/var/log/secure
/var/log/spooler
{
missingok
sharedscripts
postrotate
/usr/bin/supervisorctl signal hup rsyslog > /dev/null 2>/dev/null || true
endscript
}

0 comments on commit 9d30ee1

Please sign in to comment.