}
stop() {
+ local oldbin_pidfile="${pidfile}.oldbin"
+
# Stop daemons.
if [ -f $lockfile ]; then
+ if [ -f $oldbin_pidfile ] && [ -f $pidfile ]; then
+ msg_stopping "$svname (old process)"
+ killproc -p $oldbin_pidfile $prog -TERM
+ fi
msg_stopping "$svname"
killproc -p $pidfile $prog
RETVAL=$?
# - mainline: production quality but API can change
Name: nginx
Version: 1.15.8
-Release: 1
+Release: 2
License: BSD-like
Group: Networking/Daemons/HTTP
Source0: http://nginx.org/download/%{name}-%{version}.tar.gz