[Pkg-nginx-maintainers] Bug#900790: nginx: systemd nginx.service is missing After=nss-lookup.target

marmeladema xademax at gmail.com
Mon Jun 4 23:20:47 BST 2018


Package: nginx
Version: 1.13.12-1
Severity: normal
Tags: patch

Dear Maintainer,

Nginx tries to resolve domain at startup, and if this happen before
nss-lookup.target is started then, nginx startup might fail.
Adding nss-lookup.target to the After directive solves the problem:
After=network.target nss-lookup.target

Moreover, you can find a systemd unit service file example here:
https://www.nginx.com/resources/wiki/start/topics/examples/systemd/

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.16.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages nginx depends on:
ii  nginx-full  1.13.12-1

nginx recommends no packages.

nginx suggests no packages.

-- no debconf information



More information about the Pkg-nginx-maintainers mailing list