Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:efellows
nginx
nginx-upgrade
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File nginx-upgrade of Package nginx
#!/bin/sh [ ! -f /run/nginx.pid ] && exit 1 echo "Start new nginx master..." /bin/systemctl kill --signal=SIGUSR2 nginx.service sleep 5 [ ! -f /run/nginx.pid.oldbin ] && sleep 10 if [ ! -f /run/nginx.pid.oldbin ]; then echo "Failed to start new nginx master." exit 1 fi echo "Stop old nginx master gracefully..." oldpid=`/usr/bin/cat /run/nginx.pid.oldbin 2>/dev/null` /bin/kill -s QUIT $oldpid 2>/dev/null sleep 5 [ -f /run/nginx.pid.oldbin ] && sleep 10 if [ -f /run/nginx.pid.oldbin ]; then echo "Failed to stop old nginx master." exit 1 fi
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor