diff options
author | Konstantin Pavlov <thresh@nginx.com> | 2024-06-17 16:24:19 -0700 |
---|---|---|
committer | Konstantin Pavlov <pavlov.konstantin@gmail.com> | 2024-06-21 11:22:19 -0700 |
commit | 7a3b3fcf20edb4a425cdee92340cd9c0d3f85483 (patch) | |
tree | 14fac0a1ad9ab69d870a222f270108c89795b131 | |
parent | 64f4c78bf441fa9e021d905a03d374d0a9e05e8d (diff) | |
download | unit-7a3b3fcf20edb4a425cdee92340cd9c0d3f85483.tar.gz unit-7a3b3fcf20edb4a425cdee92340cd9c0d3f85483.tar.bz2 |
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
-rw-r--r-- | pkg/rpm/rpmbuild/SOURCES/unit.service | 5 |
1 files changed, 3 insertions, 2 deletions
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 |