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
This commit is contained in:
Konstantin Pavlov 2024-06-17 16:24:19 -07:00 committed by Konstantin Pavlov
parent 64f4c78bf4
commit 7a3b3fcf20

View file

@ -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