Windows 2008 - logging off kills nignx

Nginx serves pages until I log off the web server. I need to log in
again
and start nginx (sometimes needing to kill IIS).
Thanks for any thoughts,
Ron

Posted at Nginx Forum:

How are you staring nginx?

I log into the box as myself and then run a bat file which includes:
c:\nginx\RunHiddenConsole.exe C:\nginx\nginx.exe
ECHO Start php-cgi…
c:\nginx\RunHiddenConsole.exe C:\nginx\php-cgi-start.bat

Posted at Nginx Forum:

Thank you. Seems awkward to set it as a service… in windows. I see 3rd
party solutions to automate niginx as a service… but that seems
strange.

Posted at Nginx Forum:

You start a process in userland then kill that userland.
No surprises there…

Consider running nginx as a service/unconnected to your user session.

B. R.

On September 11, 2014 2:27:52 PM GMT+01:00, ronlemonz
[email protected] wrote:

Thank you. Seems awkward to set it as a service… in windows.

Why? Doesn’t windows run other services? Ex: IIS
Actually I’d prefer of windows and run less services by deafault I
always have to do some cleaning, but its worst in desktop than server
versions ofc.

I see
3rd
party solutions to automate niginx as a service… but that seems
strange.

you can also simple schedule a task that runs a batch file.

Im not running any windows servers with nginx at the moment but I tested
a while ago with GitHub - mike-pt/NginxService: Windows service wrapper for nginx (please follow
the link to the original repo by sneal) and see if that works for you.

Posted at Nginx Forum:
Re: Windows 2008 - logging off kills nignx


nginx mailing list
[email protected]
nginx Info Page


Sent from my Android device with K-9 Mail. Please excuse my brevity.

Sorry, I think I might have it now. Trying to re-create a dev server
based
on a prod server. I went through setting by setting comparing both
servers… waiting to see if it runs during the night. I think the run
as
“SYSTEM” is the answer. So I can log off and it should work (i hope0.
Thanks
for the help,
Ron

Posted at Nginx Forum: