cronã§å®æçã«å®è¡ãããããã«/etc/cron.daily/ã«logrotateãç½®ããã¦ãã¾ããè¨å®ã¯logrotate.confãé©ç¨ãããåå¦ç対象ãã¨ã®è©³ç´°ã¯logrotate.d以ä¸ã«åå¥ã®ãã¡ã¤ã«ãä½ãã¾ãã logrotate.conf å ¨ä½ã®è¨å®ãã¡ã¤ã«ã§ãã logrotate.conf ã調æ´ãã¾ããããã§ã¯å ¨ã¦ã®å¦ç対象ã«å ±éããæ¹éãè¨è¿°ãã¾ããã¾ããããã§å®ç¾©ããé ç®ã§ãåå¦ç対象ã®è¨å®ãã¡ã¤ã«ã§ä¸æ¸ããããã¨ãå¯è½ã§ãã # see "man logrotate" for details # rotate log files weekly weekly # keep 4 weeks worth of backlogs rotate 4 # create new (empty) log files after rotating old ones creat
{{#tags}}- {{label}}
{{/tags}}