Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Running Ubuntu 11.10 server

getting ready to switch from Apache to nginx for running wsgi got everything setup correctly while running testing on port 82

I switched nginx to use port 80 restarted server and realized I had forgotten to disable apache start on boot

disabled apache restart for good measure goto open the web-site and instant denial as though port was not open checked with netstat and port was not open

checked ps aux - nginx running

long story short I can now start nginx via upstart

$ sudo start nginx
nginx start/running, process 2601
$ sudo stop nginx
stop: Unknown instance:

nginx logs look like

unlink() "/var/run/nginx.pid" failed (2: No such file or directory)

when I start nginx I can see it running via ps aux when I check

netstat --numeric-ports -a 

doesn't show nginx listening - tried multiple ports

any idea what caused this change?

or where to look for an answer?

Currently have nginx running back on port 82 and it still has the same error/symptoms for each worker thread

share|improve this question
1  
I ended up giving in and just purging / re-installing nginx -- was told on the #upstart channel that the issue resided with the expect statement in the upstart script -- upon re-installation I started using the script from wiki.nginx.org/Upstart –  Alvin Nov 28 '11 at 16:57
    
Did you file a bug about this issue in Ubuntu or Debian? –  sendmoreinfo Dec 18 '11 at 15:50
    
no, I wasn't convinced it wasn't somehow mis-configured before I started over –  Alvin Dec 19 '11 at 6:19
    
Sounds like this question needs to be closed –  SpamapS Jan 17 '12 at 0:20
    
I would do so if I knew how -- suppose I could answer my own question since I now have nginx starting via upstart –  Alvin Jan 17 '12 at 1:24

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.