
를 통해 설치했습니다 apt
logrotate
.
그러나 나는 어떤 서비스도 보지 못합니다 systemd
.
logrotate
서비스 로 설정하려면 별도의 프로세스가 필요한가요 systemd
?
root@myserver:~# apt install -y logrotate
Reading package lists... Done
Building dependency tree
Reading state information... Done
logrotate is already the newest version (3.11.0-0.1).
0 upgraded, 0 newly installed, 0 to remove and 38 not upgraded.
root@myserver:~# systemctl list-unit-files | grep -i logro
작업Debian 9
답변1
Debian 9의 logrotate 패키지는 cron만 지원합니다 dpkg -L logrotate
. /etc/cron.*
.
일반적으로 데비안 9는 부분적인 시스템 지원만 했습니다.
한편, Debian 11의 동일한 패키지하다.timer
예약된 작업(logrotate.service를 주기적으로 시작하는 logrotate.timer)을 위한 systemd 장치를 설치합니다 .