wok rev 24995

updated nginx and nginx-extras (1.19.0 -> 1.21.6)
author Hans-G?nter Theisgen
date Mon May 16 10:04:06 2022 +0100 (2022-05-16)
parents 1c88796e4a70
children b410cca81eae
files nginx-extras/stuff/etc/init.d/nginx nginx/description.txt nginx/stuff/etc/init.d/nginx
line diff
     1.1 --- a/nginx-extras/stuff/etc/init.d/nginx	Sun May 15 20:25:22 2022 +0000
     1.2 +++ b/nginx-extras/stuff/etc/init.d/nginx	Mon May 16 10:04:06 2022 +0100
     1.3 @@ -13,42 +13,44 @@
     1.4  PIDFILE=/var/run/nginx.pid
     1.5  
     1.6  case "$1" in
     1.7 -  start)
     1.8 -    if active_pidfile $PIDFILE nginx ; then
     1.9 -      _ '%s is already running.' $NAME
    1.10 -      exit 1
    1.11 -    fi
    1.12 -    action 'Starting %s: %s...' "$DESC" $NAME
    1.13 -    $DAEMON $OPTIONS
    1.14 -    status
    1.15 -    ;;
    1.16 -  stop)
    1.17 -    if ! active_pidfile $PIDFILE nginx ; then
    1.18 -      _ '%s is not running.' $NAME
    1.19 -      exit 1
    1.20 -    fi
    1.21 -    action 'Stopping %s: %s...' "$DESC" $NAME
    1.22 -    kill $(cat $PIDFILE)
    1.23 -    rm $PIDFILE
    1.24 -    status
    1.25 -    ;;
    1.26 -  restart)
    1.27 -    if ! active_pidfile $PIDFILE nginx ; then
    1.28 -      _ '%s is not running.' $NAME
    1.29 -      exit 1
    1.30 -    fi
    1.31 -    action 'Restarting %s: %s...' "$DESC" $NAME
    1.32 -    kill $(cat $PIDFILE)
    1.33 -    rm $PIDFILE
    1.34 -    sleep 2
    1.35 -    $DAEMON $OPTIONS
    1.36 -    status
    1.37 -    ;;
    1.38 -  *)
    1.39 -    emsg "<n><b>$(_ 'Usage:')</b> $0 [start|stop|restart]"
    1.40 -    newline
    1.41 -    exit 1
    1.42 -    ;;
    1.43 +	(start)
    1.44 +		if active_pidfile $PIDFILE nginx
    1.45 +		  then
    1.46 +			_ '%s is already running.' $NAME
    1.47 +			exit 1
    1.48 +		fi
    1.49 +		newline
    1.50 +		action 'Starting %s: %s...' "$DESC" $NAME
    1.51 +		$DAEMON $OPTIONS
    1.52 +		status
    1.53 +		;;
    1.54 +	(stop)
    1.55 +		if ! active_pidfile $PIDFILE nginx
    1.56 +		  then
    1.57 +			_ '%s is not running.' $NAME
    1.58 +			exit 1
    1.59 +		fi
    1.60 +		action 'Stopping %s: %s...' "$DESC" $NAME
    1.61 +		kill $(cat $PIDFILE)
    1.62 +		status
    1.63 +		;;
    1.64 +	(restart)
    1.65 +		if ! active_pidfile $PIDFILE nginx
    1.66 +		  then
    1.67 +			_ '%s is not running.' $NAME
    1.68 +			exit 1
    1.69 +		fi
    1.70 +		action 'Restarting %s: %s...' "$DESC" $NAME
    1.71 +		kill $(cat $PIDFILE)
    1.72 +		sleep 2
    1.73 +		$DAEMON $OPTIONS
    1.74 +		status
    1.75 +		;;
    1.76 +	(*)
    1.77 +		emsg "<n><b>$(_ 'Usage:')</b> $0 [start|stop|restart]"
    1.78 +		newline
    1.79 +		exit 1
    1.80 +		;;
    1.81  esac
    1.82  
    1.83  exit 0
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/nginx/description.txt	Mon May 16 10:04:06 2022 +0100
     2.3 @@ -0,0 +1,9 @@
     2.4 +Nginx [engine x] is an HTTP and reverse proxy server,
     2.5 +a mail proxy server, and a generic TCP/UDP proxy server,
     2.6 +originally written by Igor Sysoev.
     2.7 +For a long time, it has been running on many heavily loaded
     2.8 +Russian sites including Yandex, Mail.Ru, VK, and Rambler.
     2.9 +According to Netcraft, nginx served or proxied 22.23% busiest
    2.10 +sites in December 2021.
    2.11 +Here are some of the success stories:
    2.12 +Dropbox, Netflix, Wordpress.com, FastMail.FM.
     3.1 --- a/nginx/stuff/etc/init.d/nginx	Sun May 15 20:25:22 2022 +0000
     3.2 +++ b/nginx/stuff/etc/init.d/nginx	Mon May 16 10:04:06 2022 +0100
     3.3 @@ -13,42 +13,44 @@
     3.4  PIDFILE=/var/run/nginx.pid
     3.5  
     3.6  case "$1" in
     3.7 -  start)
     3.8 -    if active_pidfile $PIDFILE nginx ; then
     3.9 -      _ '%s is already running.' $NAME
    3.10 -      exit 1
    3.11 -    fi
    3.12 -    action 'Starting %s: %s...' "$DESC" $NAME
    3.13 -    $DAEMON $OPTIONS
    3.14 -    status
    3.15 -    ;;
    3.16 -  stop)
    3.17 -    if ! active_pidfile $PIDFILE nginx ; then
    3.18 -      _ '%s is not running.' $NAME
    3.19 -      exit 1
    3.20 -    fi
    3.21 -    action 'Stopping %s: %s...' "$DESC" $NAME
    3.22 -    kill $(cat $PIDFILE)
    3.23 -    rm $PIDFILE
    3.24 -    status
    3.25 -    ;;
    3.26 -  restart)
    3.27 -    if ! active_pidfile $PIDFILE nginx ; then
    3.28 -      _ '%s is not running.' $NAME
    3.29 -      exit 1
    3.30 -    fi
    3.31 -    action 'Restarting %s: %s...' "$DESC" $NAME
    3.32 -    kill $(cat $PIDFILE)
    3.33 -    rm $PIDFILE
    3.34 -    sleep 2
    3.35 -    $DAEMON $OPTIONS
    3.36 -    status
    3.37 -    ;;
    3.38 -  *)
    3.39 -    emsg "<n><b>$(_ 'Usage:')</b> $0 [start|stop|restart]"
    3.40 -    newline
    3.41 -    exit 1
    3.42 -    ;;
    3.43 +	(start)
    3.44 +		if active_pidfile $PIDFILE nginx
    3.45 +		  then
    3.46 +			_ '%s is already running.' $NAME
    3.47 +			exit 1
    3.48 +		fi
    3.49 +		newline
    3.50 +		action 'Starting %s: %s...' "$DESC" $NAME
    3.51 +		$DAEMON $OPTIONS
    3.52 +		status
    3.53 +		;;
    3.54 +	(stop)
    3.55 +		if ! active_pidfile $PIDFILE nginx
    3.56 +		  then
    3.57 +			_ '%s is not running.' $NAME
    3.58 +			exit 1
    3.59 +		fi
    3.60 +		action 'Stopping %s: %s...' "$DESC" $NAME
    3.61 +		kill $(cat $PIDFILE)
    3.62 +		status
    3.63 +		;;
    3.64 +	(restart)
    3.65 +		if ! active_pidfile $PIDFILE nginx
    3.66 +		  then
    3.67 +			_ '%s is not running.' $NAME
    3.68 +			exit 1
    3.69 +		fi
    3.70 +		action 'Restarting %s: %s...' "$DESC" $NAME
    3.71 +		kill $(cat $PIDFILE)
    3.72 +		sleep 2
    3.73 +		$DAEMON $OPTIONS
    3.74 +		status
    3.75 +		;;
    3.76 +	(*)
    3.77 +		emsg "<n><b>$(_ 'Usage:')</b> $0 [start|stop|restart]"
    3.78 +		newline
    3.79 +		exit 1
    3.80 +		;;
    3.81  esac
    3.82  
    3.83  exit 0