Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7585945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T19:18:05+00:00 2026-05-30T19:18:05+00:00

I am rather confused about ensuring that nginx is always up. My understanding the

  • 0

I am rather confused about ensuring that nginx is always up. My understanding the init.d script justs start and stops nginx. Is this correct? Then in the docs its says to keep daemon = off;

Now, I would like to use runit and the below is my runit run script:

#!/bin/sh
exec /etc/init.d/nginx start

I notice that a new PID is always created.

So in sum:
1) I do NOT have this statement in the nginx file:

daemon = off;

2) I am using the above runit script but it always creates a new PID.

So…what is best practice to ensuring that nginx is always running.

I am using monit by the way but would runit to own hte daemon.

As a test, I did kill nginx using killall -9 nginx and I did a ps aux | grep nginx and noticed I got new pid’s. So..do I still need runit?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T19:18:06+00:00Added an answer on May 30, 2026 at 7:18 pm

    Nginx has a master process that manages the worker processes. It keeps itself running. By making nginx run in the foreground and letting some other application manage is poorly reinventing the wheel.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am rather confused about how this would be possible with the iOS Sandbox,
I've got a problem that I'm rather confused about. I have the following lines
This question expands upon the one at abstract-class-numberformat-very-confused-about-getinstance . I feel that this question
Rather confused about this. I'm storing the user's username and password inside Keychain in
I'm rather confused right now about exactly how many unique ids MongoDB could generate
I'm rather confused about properties and instance variables in Objective-C. I'm about half-way through
I'm rather confused about how the multiply and divide operations work in x86 assembly.
I'm rather confused by this stack trace (only the confusing part is shown): -[NSXMLDocument
I have been learning OpenGL and SDL lately and I've become rather confused about
I just came across this in some code, and I'm rather confused. timer =

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.