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:
parent
64f4c78bf4
commit
7a3b3fcf20
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue