Skip to content

Commit

Permalink
Merge pull request #706 from mlibrary/restart-filebeat-on-apache-logr…
Browse files Browse the repository at this point in the history
…otate

Restart filebeat after rotating apache logs
  • Loading branch information
skorner authored Aug 7, 2024
2 parents abae1c2 + affac51 commit 48f58a2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/profile/apache/logrotate.d/apache2.erb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
postrotate
if /etc/init.d/apache2 status > /dev/null ; then \
/etc/init.d/apache2 reload > /dev/null; \
/bin/systemctl restart filebeat > /dev/null; \
fi;
endscript
prerotate
Expand Down

0 comments on commit 48f58a2

Please sign in to comment.