From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id C9B2E158170 for ; Wed, 17 Jul 2024 12:08:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C9AB82BC13A; Wed, 17 Jul 2024 12:06:04 +0000 (UTC) Received: from mail-lf1-x130.google.com (mail-lf1-x130.google.com [IPv6:2a00:1450:4864:20::130]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 998BE2BC137 for ; Wed, 17 Jul 2024 12:06:04 +0000 (UTC) Received: by mail-lf1-x130.google.com with SMTP id 2adb3069b0e04-52ea2ce7abaso10897393e87.0 for ; Wed, 17 Jul 2024 05:06:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721217963; x=1721822763; darn=lists.gentoo.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ed8v04hBDay37JcxYX4/Dw6F7whgAY+zRYC3JqBdMVc=; b=Zf5MLsJbigoE9Ta/BbSczGpuerPmkFIOzhDAN5TqkxFeV9TeSxku9zbtnZLimuBZij lzQux56bL2pIPLXkQxcr3s5Ooih0s+p8Htgajm7LYNR4zMnsLrkZdPBVDEAb03mbZYqy Rh96kajxmG8LURLl90D8Xme/4PqMAqr5oHBX3sl0ISzBQKBQ0XVeGuatgEItfefHlqAh AOHuWmG2GnBLXHkOaigMpyZBX1LPOM4z10JVd5sufpj6/QbNUZGWHkKVITmoFi3fA4h5 QrWJOIkJw3x5Z/ilvq8Z9jv3WNi4rhUp9PEkVXGWPUYjEQ62ywEU5dsjwKBpYolGgSOq OLDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721217963; x=1721822763; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ed8v04hBDay37JcxYX4/Dw6F7whgAY+zRYC3JqBdMVc=; b=KsGeUQ2K/+sZHoWzs074HB0MDG9Ux2MT6VVc3Vdd7jFqpCibMFog0Ch42lz/YQXTRj JDS4yY83LGSeakWF9QnNpxm7YuC6Bk+GN2TlbmUnJcG6bIuWH2XOUpOBSW3W1Il/6nzK GF2YORz0Eg5N0eh0dtfiFZhTiWhc87NvNFrbw0O8V7WQN0pfoofGpggY9qhDYPO9Cd/4 Q62v/cnIFdaaSvKzd1+u1VgoEJ+jS7kUIGd40p8gPE/dE9LzODfvtePHCBpHxfkIRS9j xvvbyJ/SEfLrrKxHOUdWYoFKiHYbimDVpLRAHu13JCWal5cmB2Okpt08Kf1EHyhBgr9r eGvA== X-Gm-Message-State: AOJu0Yx69GhxtrXhuAC85q0KUV1lvh2z6UZYPyLJa9EAS6Ed/DWltsQ/ dhwwNCqezILCqeH1B0p5wjyNF4GTWiWjAEyyLYxsupv10DEySWkef3wKqA== X-Google-Smtp-Source: AGHT+IGXMJR01GNMYyqgZQg7bhGU8Xl1cQUp5cCm0JIRoGIeVY6mpXn4WoYvXfOfs9FG2Ga9gO/48w== X-Received: by 2002:a2e:b2c7:0:b0:2e5:61f4:2c11 with SMTP id 38308e7fff4ca-2eefd165bc4mr12970571fa.45.1721217963091; Wed, 17 Jul 2024 05:06:03 -0700 (PDT) Received: from localhost.localdomain ([62.244.50.57]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2eee1914ad5sm14636941fa.79.2024.07.17.05.06.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jul 2024 05:06:02 -0700 (PDT) From: Zurab Kvachadze To: gentoo-dev@lists.gentoo.org Cc: Zurab Kvachadze Subject: [gentoo-dev] [RFC PATCH 06/19] www-servers/nginx: add nginx-r2.service Date: Wed, 17 Jul 2024 15:05:38 +0300 Message-ID: <20240717120553.31866-7-zurabid2016@gmail.com> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240717120553.31866-1-zurabid2016@gmail.com> References: <20240717120553.31866-1-zurabid2016@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Archives-Salt: 19c373ea-c8d5-4b4d-8c9e-5a4a014eca97 X-Archives-Hash: 3c920afa0028ffd45a98f9f350dcb941 This is the second revision of the systemd service file for NGINX. This commit removes redundant Exec{Stop,Reload} lines that restate the systemd defaults and changes the ExecStartPre directive from "nginx -t" (testing the NGINX configuration that is done anyway by the main process, bug 481456) to "mkdir -p /var/tmp/nginx", making sure the required directory for the NGINX temp files is present. ExecStopPost has also been removed, since sleeping for 100 ms serves no purpose. The second revision also changes the Exec* directives to use the plain file names, instead of the absolute ones, per systemd.service(5) guidelines: > It is thus safe to use just the executable name in case of executables > located in any of the "standard" directories, and an absolute path > must be used in other cases. Bug: https://bugs.gentoo.org/481456 Signed-off-by: Zurab Kvachadze --- www-servers/nginx/files/nginx-r2.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 www-servers/nginx/files/nginx-r2.service diff --git a/www-servers/nginx/files/nginx-r2.service b/www-servers/nginx/files/nginx-r2.service new file mode 100644 index 000000000000..2916aba391a2 --- /dev/null +++ b/www-servers/nginx/files/nginx-r2.service @@ -0,0 +1,12 @@ +[Unit] +Description=The NGINX HTTP and reverse proxy server +After=network.target remote-fs.target nss-lookup.target + +[Service] +Type=forking +PIDFile=/run/nginx.pid +ExecStartPre=mkdir -p /var/tmp/nginx +ExecStart=nginx + +[Install] +WantedBy=multi-user.target -- 2.44.2