16 Mar 2013 » spdy

I started supporting spdy this morning. It as pretty simple. I downloaded the most recent version of openssl (to pick up NPN) and the ngnix source and a patch. Applied patch, built a static ngnix binary, and off we went. Only problem was fiddling with the init script refer to the new binary and the config in /etc. I also cleaned up a few bits of the ngnix config. Spdy check is happy.

Oh, can you spot why this extract from debian's /etc/init.d/ngnix might not be ideal?

set -e
  restart|force-reload)
        echo -n "Restarting $DESC: "
        start-stop-daemon --stop --quiet --pidfile \
                /var/run/$NAME.pid --exec $DAEMON || true
        sleep 1
        test_nginx_config
        start-stop-daemon --start --quiet --pidfile \
                /var/run/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS || true
        echo "$NAME."
The rest of the blog
comments powered by Disqus