]> git.pld-linux.org Git - packages/nginx.git/commitdiff
- drop obsolete files
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sun, 5 Jul 2009 17:26:14 +0000 (17:26 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nginx-autoindexDoS.patch -> 1.2
    nginx.init -> 1.5

nginx-autoindexDoS.patch [deleted file]
nginx.init [deleted file]

diff --git a/nginx-autoindexDoS.patch b/nginx-autoindexDoS.patch
deleted file mode 100644 (file)
index 2d8bb88..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-Index: src/http/modules/ngx_http_autoindex_module.c
-===================================================================
---- src/http/modules/ngx_http_autoindex_module.c       (revision 818)
-+++ src/http/modules/ngx_http_autoindex_module.c       (working copy)
-@@ -236,6 +236,11 @@
-     rc = ngx_http_send_header(r);
-     if (rc == NGX_ERROR || rc > NGX_OK || r->header_only) {
-+        if (ngx_close_dir(&dir) == NGX_ERROR) {
-+            ngx_log_error(NGX_LOG_ALERT, r->connection->log, ngx_errno,
-+                          ngx_close_dir_n " \"%V\" failed", &path);
-+        }
-+
-         return rc;
-     }
diff --git a/nginx.init b/nginx.init
deleted file mode 100644 (file)
index 2a31c2d..0000000
+++ /dev/null
@@ -1,100 +0,0 @@
-#!/bin/sh
-#
-# nginx        Nginx Web Server
-#
-# chkconfig:   345 85 15
-# description: Nginx is a World Wide Web server.  It is used to serve \
-#              HTML files and CGI.
-# processname: nginx
-# pidfile:     /var/run/nginx.pid
-# config:      /etc/nginx/nginx.conf
-
-
-# Source function library
-. /etc/rc.d/init.d/functions
-
-# Get network config
-. /etc/sysconfig/network
-
-# Get service config
-[ -f /etc/sysconfig/nginx ] && . /etc/sysconfig/nginx
-
-# Check that networking is up.
-if is_yes "${NETWORKING}"; then
-       if [ ! -f /var/lock/subsys/network -a "$1" != stop -a "$1" != status ]; then
-               msg_network_down nginx
-               exit 1
-       fi
-else
-       exit 0
-fi
-
-if [ -d "${HTTPD_CONF:-'/etc/nginx/nginx.conf'}" ]; then
-       CFG="-f ${HTTPD_CONF:-'/etc/nginx/nginx.conf'}"
-elif [ -n "$HTTPD_CONF" ]; then
-       echo "error: HTTPD_CONF='$HTTPD_CONF': not a file, not a directory"
-       exit 1
-else
-       CFG=""
-fi
-
-start() {
-       # Check if the service is already running?
-       if [ ! -f /var/lock/subsys/nginx ]; then
-               msg_starting nginx
-               daemon /usr/sbin/nginx $CFG $HTTPD_OPTS
-               RETVAL=$?
-               [ $RETVAL -eq 0 ] && touch /var/lock/subsys/nginx
-       else
-               msg_already_running nginx
-       fi
-}
-
-stop() {
-       # Stop daemons.
-       if [ -f /var/lock/subsys/nginx ]; then
-               msg_stopping nginx
-               killproc --waitforname nginx --waitfortime 60 nginx $CFG
-               # Delete pidfile only when nginx was called successfully
-               if [ $? -eq 0 ]; then
-                       rm -f /var/lock/subsys/nginx /var/run/nginx.pid >/dev/null 2>&1
-               fi
-       else
-               msg_not_running nginx
-       fi
-}
-
-RETVAL=0
-# See how we were called.
-case "$1" in
-  start)
-       start
-       ;;
-  stop)
-       stop
-       ;;
-  status)
-       status nginx
-       RETVAL=$?
-       ;;
-  restart)
-       stop
-       start
-       ;;
-  reload|force-reload|graceful)
-       if [ -f /var/lock/subsys/nginx ]; then
-               msg_reloading nginx
-               killproc nginx -HUP
-               RETVAL=$?
-       else
-               msg_not_running nginx
-               RETVAL=7
-       fi
-       ;;
-  *)
-       msg_usage "$0 {start|stop|restart|reload|force-reload|graceful|status}"
-       exit 3
-       ;;
-esac
-
-exit $RETVAL
This page took 0.09686 seconds and 4 git commands to generate.