~spuul/nginx/trunk

« back to all changes in this revision

Viewing changes to debian/nginx-full.postinst

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2013-11-22 12:23:25 UTC
  • mfrom: (4.3.6 sid)
  • Revision ID: package-import@ubuntu.com-20131122122325-6i9ns8d0e4fceepd
Tags: 1.4.4-1ubuntu1
* Resynchronise with Debian (LP: #1253691).  Remaining changes:
  - debian/patches/ubuntu-branding.patch:
    + Add Ubuntu branding to server_tokens.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
  if [ -f /run/nginx.pid ] && pidof /usr/sbin/nginx >/dev/null; then
16
16
    NGX_PID=`cat /run/nginx.pid`
17
17
    if kill -s USR2 $NGX_PID 2>/dev/null; then
18
 
      while [ ! -f /run/nginx.pid.oldbin ]; do
 
18
      while [ ! -s /run/nginx.pid.oldbin ] || [ ! -s /run/nginx.pid ]; do
19
19
        cnt=`expr $cnt + 1`
20
20
        if [ $cnt -gt 10 ]; then
21
21
          kill -s KILL $NGX_PID