summaryrefslogtreecommitdiff
blob: 5d9f8dce5b83f71020d21c557d71422f7a8ac2d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Apache2 logrotate snipet for Gentoo Linux
# Originally contributed by Chuck Short
#
/var/log/apache2/*log {
  missingok
  notifempty
  sharedscripts
  postrotate
  if test -d /run/systemd/system ; then
	systemctl reload apache2.service > /dev/null 2>&1 || true
  else
	/etc/init.d/apache2 reload > /dev/null 2>&1 || true
  fi
  endscript
}