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 CA237159C96 for ; Mon, 29 Jul 2024 21:54:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 802D92BC115; Mon, 29 Jul 2024 21:52:52 +0000 (UTC) Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) (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 396C22BC10D for ; Mon, 29 Jul 2024 21:52:52 +0000 (UTC) Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-a7aabb71bb2so557553866b.2 for ; Mon, 29 Jul 2024 14:52:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1722289971; x=1722894771; 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=xvfGOJ2NQI0kxqFOLEAD8HTiZTB8zzEPmKuDkHnAZNA=; b=f7LKNfGWyb6wfAkOUOuemrzn1xDNPb1ink9PXH5QjgWe16k/pGt8SyD4+htctzyNYJ H7L9y9xkSOqq6R+amUOWkCRxpXYi5wY2U5Nfi0q4bKIT5iyM/QXkgG/pwKphbNXlRDg8 /UY4Tv7MVpdrRp9RO/P+Nwd0ed0WPtLNwwnz7TMBDBaq/3dL9kTouSshNh/tkox4Sjo2 olqjMYtJ5YU9Ya3AXvIrwoKC550W5jZcnvROsxQRMVv4xwdpHO1tmPcmolTkCEYRhL3O a4aP79feyFUyJIf5VrUVIH0YVB4iq1qCDBMgbYcJaLFqTdtX/UHpd+qejgzsiuSo0rVD GUZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722289971; x=1722894771; 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=xvfGOJ2NQI0kxqFOLEAD8HTiZTB8zzEPmKuDkHnAZNA=; b=HVeakB+S+G9IEDieY0mDSgYeByMjFjN22fI6r2+vI7PKj7tYNYJ71XVxLCwVwoyZmw XshJTzooGcJCupOPe8zpilQCDtjVK+dLoZ9DaXa1CBg0r6pqlNZi5+4+oMIXJ2EnYIi/ R4f/hlyvqWB0FQPIry7jro606MYPAvBsI1d1kYQk+WMQTvmiHNVjDmeCvxJPLDNZ0/q3 EWllmD4Gks0CH73LjpugWCYNFlXN5hJkYHchQI3qk2Es7j1mDlHijctnlHpgrqz05x4D 01H/sbrd23YORQWDCUmDbHzytyaV8TQndn0F6KooGH9a2CqOai2VDCrIX7OdE8avHDlL ZoRg== X-Gm-Message-State: AOJu0YyCYunTeIxCKCp8zfiaqozO20Zu2OB7wpqPkM1k85PhijDAIcTZ hrEqXyDDhWRIBdbCf+JYYolQIN8TPFf0aBx5rDRsiarRYhK9qmuDGT9raw== X-Google-Smtp-Source: AGHT+IF63B8oSkl0JgIJsVSrdbT/jT7UF073NX2r602eL/uGCe+OpXLeya/kSqOdQh17QV78F3ZXiw== X-Received: by 2002:a17:906:c145:b0:a7a:b977:4ca0 with SMTP id a640c23a62f3a-a7d400c60d1mr587572866b.40.1722289970849; Mon, 29 Jul 2024 14:52:50 -0700 (PDT) Received: from localhost.localdomain ([62.244.50.57]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a7acad9046fsm564748266b.147.2024.07.29.14.52.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jul 2024 14:52:50 -0700 (PDT) From: Zurab Kvachadze To: gentoo-dev@lists.gentoo.org Cc: conikost@gentoo.org, Zurab Kvachadze Subject: [gentoo-dev] [RFC PATCH v2 07/20] www-servers/nginx: add nginx-r2.service Date: Tue, 30 Jul 2024 00:52:23 +0300 Message-ID: <20240729215241.13243-8-zurabid2016@gmail.com> X-Mailer: git-send-email 2.44.2 In-Reply-To: <20240729215241.13243-1-zurabid2016@gmail.com> References: <20240729215241.13243-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: b77110f6-b69e-4c2b-8fad-f85373696536 X-Archives-Hash: 57b943f61ad78da900227db45cda79c6 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 | 11 +++++++++++ 1 file changed, 11 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..c3afed7bea00 --- /dev/null +++ b/www-servers/nginx/files/nginx-r2.service @@ -0,0 +1,11 @@ +[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 +ExecStart=nginx + +[Install] +WantedBy=multi-user.target -- 2.44.2