Debian 및 Certbot: 패키지용 크론 작업을 어디에 설치하나요?

Debian 및 Certbot: 패키지용 크론 작업을 어디에 설치하나요?

certbot.eff.org의 지침에 따라 python-certbot-apache 패키지를 설치했지만 설정해야 하는 cron 작업에 대한 항목을 찾을 수 없습니다.

시스템의 Certbot 패키지에는 인증서가 만료되기 전에 자동으로 갱신하는 cron 작업이 함께 제공됩니다. Let's Encrypt 인증서는 90일 동안 유효하므로 이 기능을 활용하는 것이 좋습니다. 에서:https://certbot.eff.org/#debianjessie-apache

이 크론 작업은 어디서 찾을 수 있나요? 나는 sudo 유무에 관계없이 "crontab -l"을 시도했지만 성공하지 못했습니다.

인증서를 갱신하기 위해 cron 작업을 실행하는 방법을 이해합니다. 내 질문은 이 패키지에서 cron 작업을 어디에 설치합니까? 설치되었나요?

답변1

Debian 파생물에서 패키지에 설치된 파일을 나열하려면 일반적으로 다음을 수행합니다 dpkg -L.

귀하의 경우에는 다음과 같습니다.

dpkg -L python-certbot-apache 

다음은 당신을 위한 목록입니다모두설치된 파일 및 위치.

packages.debian.org에서 파일 목록을 요청할 수도 있습니다.

~에서https://packages.debian.org/stretch/all/python-certbot-apache/filelist

/usr/lib/python2.7/dist-packages/certbot_apache-0.10.2.egg-info/PKG-INFO
/usr/lib/python2.7/dist-packages/certbot_apache-0.10.2.egg-info/dependency_links.txt
/usr/lib/python2.7/dist-packages/certbot_apache-0.10.2.egg-info/entry_points.txt
/usr/lib/python2.7/dist-packages/certbot_apache-0.10.2.egg-info/requires.txt
/usr/lib/python2.7/dist-packages/certbot_apache-0.10.2.egg-info/top_level.txt
/usr/lib/python2.7/dist-packages/certbot_apache/__init__.py
/usr/lib/python2.7/dist-packages/certbot_apache/augeas_configurator.py
/usr/lib/python2.7/dist-packages/certbot_apache/augeas_lens/httpd.aug
/usr/lib/python2.7/dist-packages/certbot_apache/centos-options-ssl-apache.conf
/usr/lib/python2.7/dist-packages/certbot_apache/configurator.py
/usr/lib/python2.7/dist-packages/certbot_apache/constants.py
/usr/lib/python2.7/dist-packages/certbot_apache/display_ops.py
/usr/lib/python2.7/dist-packages/certbot_apache/obj.py
/usr/lib/python2.7/dist-packages/certbot_apache/options-ssl-apache.conf
/usr/lib/python2.7/dist-packages/certbot_apache/parser.py
/usr/lib/python2.7/dist-packages/certbot_apache/tls_sni_01.py
/usr/share/doc/python-certbot-apache/changelog.Debian.gz
/usr/share/doc/python-certbot-apache/copyright

패키지에 자동으로 추가되는 크론 작업이 없는 것 같습니다.

패키지도 설치해야 합니다.certbot

sudo apt-get install certbot

파일 목록:

/etc/cron.d/certbot
/lib/systemd/system/certbot.service
/lib/systemd/system/certbot.timer
/usr/bin/certbot
/usr/bin/letsencrypt
/usr/share/doc/certbot/README.rst.gz
/usr/share/doc/certbot/changelog.Debian.gz
/usr/share/doc/certbot/changelog.gz
/usr/share/doc/certbot/copyright
/usr/share/man/man1/certbot.1.gz
/usr/share/man/man1/letsencrypt.1.gz

따라서 마지막 패키지에서 설치된 crontab 파일은 실제로 /etc/cron.d/certbotcrontab용이고 /lib/systemd/system/certbot.service+는 /lib/systemd/system/certbot.timersystemd용입니다.

답변2

실제로 systemd를 사용합니다.

한때 systemctl list-unit-files | grep enabled실행 중인 서비스를 나열한 적이 있습니다.

그것의 이름은certbot.timer

관련 정보