From 7a3b3fcf20edb4a425cdee92340cd9c0d3f85483 Mon Sep 17 00:00:00 2001 From: Konstantin Pavlov Date: Mon, 17 Jun 2024 16:24:19 -0700 Subject: Packages: moved systemd service to forking on rpm-based distros Closes: https://github.com/nginx/unit/issues/915 Closes: https://github.com/nginx/unit/issues/1178 --- pkg/rpm/rpmbuild/SOURCES/unit.service | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'pkg/rpm/rpmbuild') diff --git a/pkg/rpm/rpmbuild/SOURCES/unit.service b/pkg/rpm/rpmbuild/SOURCES/unit.service index 6df00fbb..f52d96da 100644 --- a/pkg/rpm/rpmbuild/SOURCES/unit.service +++ b/pkg/rpm/rpmbuild/SOURCES/unit.service @@ -15,12 +15,13 @@ Wants=network-online.target After=network-online.target [Service] -Type=simple +Type=forking Environment="UNITD_OPTIONS=--log /var/log/unit/unit.log --pid /var/run/unit/unit.pid" -ExecStart=/usr/sbin/unitd $UNITD_OPTIONS --no-daemon +ExecStart=/usr/sbin/unitd $UNITD_OPTIONS ExecReload= RuntimeDirectory=unit RuntimeDirectoryMode=0755 +PIDFile=/run/unit/unit.pid [Install] WantedBy=multi-user.target -- cgit From 804a12fed0f1c534412f687f89e101b5cb5b97c8 Mon Sep 17 00:00:00 2001 From: Konstantin Pavlov Date: Mon, 20 May 2024 12:52:02 -0700 Subject: Packages: remove support for EOL Fedora versions (35-38) --- pkg/rpm/rpmbuild/SOURCES/unit.example-python310-config | 16 ---------------- 1 file changed, 16 deletions(-) delete mode 100644 pkg/rpm/rpmbuild/SOURCES/unit.example-python310-config (limited to 'pkg/rpm/rpmbuild') diff --git a/pkg/rpm/rpmbuild/SOURCES/unit.example-python310-config b/pkg/rpm/rpmbuild/SOURCES/unit.example-python310-config deleted file mode 100644 index 8a73ca53..00000000 --- a/pkg/rpm/rpmbuild/SOURCES/unit.example-python310-config +++ /dev/null @@ -1,16 +0,0 @@ -{ - "applications": { - "example_python": { - "type": "python 3.10", - "processes": 2, - "path": "/usr/share/doc/unit-python310/examples/python-app", - "module": "wsgi" - } - }, - - "listeners": { - "*:8400": { - "pass": "applications/example_python" - } - } -} -- cgit