°Ô½Ã¹° 1,369°Ç
   
logrotate.d//apache2
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2019-08-05 (¿ù) 14:38 Á¶È¸ : 2050
±ÛÁÖ¼Ò :
                                
/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.

À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.