Created
January 31, 2012 20:39
-
-
Save ngsw/1712762 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- nginx.yum-org 2011-12-16 00:22:28.000000000 +0900 | |
+++ nginx 2012-02-01 04:10:39.447206296 +0900 | |
@@ -6,7 +6,7 @@ | |
# processname: nginx | |
# config: /etc/nginx/nginx.conf | |
# config: /etc/sysconfig/nginx | |
-# pidfile: /var/run/nginx.pid | |
+# pidfile: /var/run/nginx/nginx.pid | |
# description: nginx is a HTTP and reverse proxy server | |
# | |
### BEGIN INIT INFO | |
@@ -28,10 +28,10 @@ | |
fi | |
prog=nginx | |
-nginx=${NGINX-/usr/sbin/nginx} | |
+nginx=${NGINX-/usr/local/nginx/sbin/nginx} | |
conffile=${CONFFILE-/etc/nginx/nginx.conf} | |
lockfile=${LOCKFILE-/var/lock/subsys/nginx} | |
-pidfile=${PIDFILE-/var/run/nginx.pid} | |
+pidfile=${PIDFILE-/var/run/nginx/nginx.pid} | |
SLEEPMSEC=100000 | |
RETVAL=0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yum install nginx
cp -a /etc/init.d/nginx /bkup/path/to/nginx
yum remove nginx
cp -a /bkup/path/to/nginx{.yum-org,}
vim /bkup/path/to/nginx