리눅스 분류
logrotate 에서 wtmp file이 rotate
작성자 정보
- 허태훈 작성
- 작성일
컨텐츠 정보
- 1,104 조회
- 0 추천
- 목록
본문
/etc/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
create
# uncomment this if you want your log files compressed
#compress
# RPM packages drop log rotation information into this directory
include /etc/logrotate.d
# no packages own lastlog or wtmp -- we'll rotate them here
/var/log/wtmp {
monthly
create 0664 root utmp
rotate 1
}
위 강조 된 부분의 내용이 주석처리나 잘못된 부분이 있는지 살펴보세요.
/etc/logrotate.d 디렉토리 의 내용 중 syslog 부분도 함 보세요.
관련자료
-
이전
-
다음
댓글 0
등록된 댓글이 없습니다.