Compiling Nginx on production. How to do it without down time.
Valentin V. Bartenev
ne at vbart.ru
Sat Oct 13 12:21:17 UTC 2012
On Saturday 13 October 2012 16:10:48 Valentin V. Bartenev wrote:
> On Saturday 13 October 2012 04:25:36 Bob S. wrote:
> > I don't see how this can work.
> > Trying to replace the nginx executable with a new version of nginx, while
> > nginx is running, will produce:
> > cp: cannot create regular file `nginx': Text file busy
> > Or am I missing something?
> > This is standard behavior on any running executable in Linux.
> This is just a warning produced by "cp", you can force it with -f flag.
But anyway, it would be a much better idea to "mv" or "rm" an old binary instead
of overwrite it.
wbr, Valentin V. Bartenev
More information about the nginx