[Letsencrypt-devel] Bug#895237: Bug#895237: certbot: Stop/start Apache using systemctl instead of apachectl

Harlan Lieberman-Berg hlieberman at debian.org
Thu Apr 12 00:50:48 UTC 2018


reassign 895237 apache2 2.4.33-1
retitle 895237 apache2: apachectl does not use systemd for restarts
affects 895237 certbot
thanks

Hi Jan,

Hm, looks like this is actually a bug over in apache-land.  We do the right
thing for `apachectl start` in terms of wrapping to use systemd, but we
don't do that during `apachectl restart`.

Apache folx, can we potentially just turn restart into a shim that calls
`apachectl stop` and `apachectl start`?  That will solve the problem with
the least amount of fuss.

Sincerely,

On Sun, Apr 8, 2018 at 12:51 PM, Jan Heitkötter <jan at heitkoetter.net> wrote:

> Package: certbot
> Version: 0.21.1-1~bpo9+1
> Severity: normal
>
> Dear Maintainer,
>
> on certificate renewal certbot will stop Apache and start it afterwards.
> The relevant commands are pre_hook and post_hook in
> /etc/letsencrypt/renewal/CERTNAME.conf.
>
> Default behaviour is do stop/start Apache using apachectl which fails in
> installations running systemd. Apache will stop, but not start again.
>
> Fix: use systemctl to start/stop Apache.
>
> Regards
>
> Jan
>
>
> -- System Information:
> Debian Release: 9.4
>   APT prefers stable
>   APT policy: (500, 'stable')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 4.9.0-6-amd64 (SMP w/2 CPU cores)
> Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8),
> LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: systemd (via /run/systemd/system)
>
> Versions of packages certbot depends on:
> ii  python3          3.5.3-1
> ii  python3-certbot  0.21.1-1~bpo9+1
>
> certbot recommends no packages.
>
> Versions of packages certbot suggests:
> pn  python-certbot-doc      <none>
> ii  python3-certbot-apache  0.21.1-1~bpo9+1
> pn  python3-certbot-nginx   <none>
>
> -- no debconf information
>
> _______________________________________________
> Letsencrypt-devel mailing list
> Letsencrypt-devel at lists.alioth.debian.org
> https://lists.alioth.debian.org/mailman/listinfo/letsencrypt-devel
>
> --
> Harlan Lieberman-Berg
> ~hlieberman
> <https://lists.alioth.debian.org/mailman/listinfo/letsencrypt-devel>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/letsencrypt-devel/attachments/20180411/4d0abd41/attachment.html>


More information about the Letsencrypt-devel mailing list