# HG changeset patch # User Hans-G?nter Theisgen # Date 1652691846 -3600 # Node ID 3d13c41224cd1a5ef0805af9589d99ecfe49d105 # Parent 1c88796e4a70c0d80de715a6e098d8167923cdb8 updated nginx and nginx-extras (1.19.0 -> 1.21.6) diff -r 1c88796e4a70 -r 3d13c41224cd nginx-extras/stuff/etc/init.d/nginx --- a/nginx-extras/stuff/etc/init.d/nginx Sun May 15 20:25:22 2022 +0000 +++ b/nginx-extras/stuff/etc/init.d/nginx Mon May 16 10:04:06 2022 +0100 @@ -13,42 +13,44 @@ PIDFILE=/var/run/nginx.pid case "$1" in - start) - if active_pidfile $PIDFILE nginx ; then - _ '%s is already running.' $NAME - exit 1 - fi - action 'Starting %s: %s...' "$DESC" $NAME - $DAEMON $OPTIONS - status - ;; - stop) - if ! active_pidfile $PIDFILE nginx ; then - _ '%s is not running.' $NAME - exit 1 - fi - action 'Stopping %s: %s...' "$DESC" $NAME - kill $(cat $PIDFILE) - rm $PIDFILE - status - ;; - restart) - if ! active_pidfile $PIDFILE nginx ; then - _ '%s is not running.' $NAME - exit 1 - fi - action 'Restarting %s: %s...' "$DESC" $NAME - kill $(cat $PIDFILE) - rm $PIDFILE - sleep 2 - $DAEMON $OPTIONS - status - ;; - *) - emsg "$(_ 'Usage:') $0 [start|stop|restart]" - newline - exit 1 - ;; + (start) + if active_pidfile $PIDFILE nginx + then + _ '%s is already running.' $NAME + exit 1 + fi + newline + action 'Starting %s: %s...' "$DESC" $NAME + $DAEMON $OPTIONS + status + ;; + (stop) + if ! active_pidfile $PIDFILE nginx + then + _ '%s is not running.' $NAME + exit 1 + fi + action 'Stopping %s: %s...' "$DESC" $NAME + kill $(cat $PIDFILE) + status + ;; + (restart) + if ! active_pidfile $PIDFILE nginx + then + _ '%s is not running.' $NAME + exit 1 + fi + action 'Restarting %s: %s...' "$DESC" $NAME + kill $(cat $PIDFILE) + sleep 2 + $DAEMON $OPTIONS + status + ;; + (*) + emsg "$(_ 'Usage:') $0 [start|stop|restart]" + newline + exit 1 + ;; esac exit 0 diff -r 1c88796e4a70 -r 3d13c41224cd nginx/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/nginx/description.txt Mon May 16 10:04:06 2022 +0100 @@ -0,0 +1,9 @@ +Nginx [engine x] is an HTTP and reverse proxy server, +a mail proxy server, and a generic TCP/UDP proxy server, +originally written by Igor Sysoev. +For a long time, it has been running on many heavily loaded +Russian sites including Yandex, Mail.Ru, VK, and Rambler. +According to Netcraft, nginx served or proxied 22.23% busiest +sites in December 2021. +Here are some of the success stories: +Dropbox, Netflix, Wordpress.com, FastMail.FM. diff -r 1c88796e4a70 -r 3d13c41224cd nginx/stuff/etc/init.d/nginx --- a/nginx/stuff/etc/init.d/nginx Sun May 15 20:25:22 2022 +0000 +++ b/nginx/stuff/etc/init.d/nginx Mon May 16 10:04:06 2022 +0100 @@ -13,42 +13,44 @@ PIDFILE=/var/run/nginx.pid case "$1" in - start) - if active_pidfile $PIDFILE nginx ; then - _ '%s is already running.' $NAME - exit 1 - fi - action 'Starting %s: %s...' "$DESC" $NAME - $DAEMON $OPTIONS - status - ;; - stop) - if ! active_pidfile $PIDFILE nginx ; then - _ '%s is not running.' $NAME - exit 1 - fi - action 'Stopping %s: %s...' "$DESC" $NAME - kill $(cat $PIDFILE) - rm $PIDFILE - status - ;; - restart) - if ! active_pidfile $PIDFILE nginx ; then - _ '%s is not running.' $NAME - exit 1 - fi - action 'Restarting %s: %s...' "$DESC" $NAME - kill $(cat $PIDFILE) - rm $PIDFILE - sleep 2 - $DAEMON $OPTIONS - status - ;; - *) - emsg "$(_ 'Usage:') $0 [start|stop|restart]" - newline - exit 1 - ;; + (start) + if active_pidfile $PIDFILE nginx + then + _ '%s is already running.' $NAME + exit 1 + fi + newline + action 'Starting %s: %s...' "$DESC" $NAME + $DAEMON $OPTIONS + status + ;; + (stop) + if ! active_pidfile $PIDFILE nginx + then + _ '%s is not running.' $NAME + exit 1 + fi + action 'Stopping %s: %s...' "$DESC" $NAME + kill $(cat $PIDFILE) + status + ;; + (restart) + if ! active_pidfile $PIDFILE nginx + then + _ '%s is not running.' $NAME + exit 1 + fi + action 'Restarting %s: %s...' "$DESC" $NAME + kill $(cat $PIDFILE) + sleep 2 + $DAEMON $OPTIONS + status + ;; + (*) + emsg "$(_ 'Usage:') $0 [start|stop|restart]" + newline + exit 1 + ;; esac exit 0