Le mercredi 28 novembre 2018 à 13:29 +0000, Michael Grant a écrit :
> In /lib/systemd/system/certbot.service
>  
> The line to start certbot is:
> ExecStart=/usr/bin/certbot -q renew
>  
> If I modify this file by hand:
>  
> ExecStart=/usr/bin/certbot -q --pre-hook /usr/local/bin/certbot-
> prehook.sh renew
>  
> The next time certbot is updated by apt, this file gets overwritten
> and my change goes away.
>  
> Could someone please tell me the proper place to modify certbot’s
> default arg list or is there some systemctl command I should be doing
> instead of modifying this file directly?  Or.... is this a bug and
> apt-get should warn me before overwriting this file on update?
>  
Hello,

You can put an override file in
/etc/systemd/system/certbot.service.d/override.conf

systemctl edit certbot.service should create it for you

-- 
Bastien

Reply via email to