Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I need passenger/nginx to run many sites on port 80. I have installed it with its own installer (per the instructions on the nginx website. But nginx is not registered as a service. I can only run it through the binary.

I need to be able to do this:

$ service nginx restart

Shouldn't passenger have registered nginx as a service?
How can I get Ubuntu's daemon scripts to start the service?

share|improve this question

migrated from serverfault.com Feb 27 '12 at 15:21

This question came from our site for professional system and network administrators.

    
I didn't know there were many installation methods, I just followed the instructions on the site. –  HappyDeveloper Feb 27 '12 at 14:50
    
@HappyDeveloper It's too early on Monday morning to get so worked up. Server Fault has always been a site exclusively for System Administrators only, my apologies if you were misled. We have been frustrated by the site fragmentation as well, and have just as little control over it. I'll move this to Unix & Linux for you since I think there's enough details to get an answer. I believe the answer will be that you have to install nginx using your Distro's sanctioned installer (apt-get IIRC) if you want the Distro's daemon scripts to work correctly. –  Chris S Feb 27 '12 at 15:18
    
Did you try installing using sudo apt-get install nginx? –  terdon Jun 11 at 15:07
add comment

1 Answer 1

You can add the nginx init script from: http://wiki.nginx.org/Nginx-init-ubuntu , if you don't have it already. It should allow you to start/stop/restart the daemon using sudo /etc/init.d/nginx <cmd>

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.