/var/log/apache2/*.log {
	daily
	missingok
	rotate 14
	compress
	delaycompress
	notifempty
	create 640 root adm
	sharedscripts
	postrotate
                if invoke-rc.d apache2 status > /dev/null 2>&1; then \
                    invoke-rc.d apache2 reload > /dev/null 2>&1; \
                fi;
	endscript
	prerotate
		if [ -d /etc/logrotate.d/httpd-prerotate ]; then \
			run-parts /etc/logrotate.d/httpd-prerotate; \
		fi; \
	endscript
postrotate
prerotate
ÁöÁ¤µÈ ·Î±×ÆÄÀÏ¿¡ logrotateÀÛ¾÷ÀÌ ³¡³ª°í ³ ÀÌÈÄ¿¡ ½ÇÇàÇÒ ÀÛ¾÷À» ¼³Á¤ÇصР°ÍÀÌ´Ù. 
´ëºÎºÐ À̺κп¡ ¼³Á¤µÇ´Â ÀÛ¾÷Àº rotateµÈ ·Î±×ÆÄÀÏÀÇ µ¥¸óÀ» Àç½ÃÀÛ½ÃŰ´Â ÀÛ¾÷ÀÌ´Ù. 
¹Ý´ëÀÇ ÀÛ¾÷À» ÇÏ·Á¸é Áï, logrotateÀÛ¾÷ Àü¿¡ ½ÇÇàÇÒ ÀÛ¾÷ÀÌ ÀÖ´Ù¸é
postrotate/endscript´ë½Å¿¡ prerotate/endscript¸¦ »ç¿ëÇÏ¸é µÈ´Ù.
invoke-rc.d : service ¿Í ºñ½ÁÇÑ µ¥¸óÆÐŰÁö °ü¸® ¸í·É¾î 
 http://manpages.ubuntu.com/manpages/trusty/man8/invoke-rc.d.8.html invoke-rc.d is a generic interface to execute System V style init script  /etc/init.d/name
       actions,  obeying  runlevel  constraints  as  well as any local policies set by the system
       administrator.
       All access to the init scripts by Debian  packages'  maintainer  scripts  should  be  done
       through invoke-rc.d.
       This  manpage  documents  only the usage and behavior of invoke-rc.d.  For a discussion of
       the System V style init script arrangements  please  see  init(8).   More  information  on
       invoke-rc.d  can  be  found  in  the section on runlevels and init.d scripts of the Debian
       Policy Manual.