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 9229397
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T05:33:42+00:00 2026-06-18T05:33:42+00:00

I am currently running Foreman on staging (Ubuntu) and once I get it working

  • 0

I am currently running Foreman on staging (Ubuntu) and once I get it working will switch to using upstart.

My Procfile.staging looks like this:

nginx: sudo service nginx start
unicorn: bundle exec unicorn -c ./config/unicorn.rb
redis: bundle exec redis-server
sidekiq: bundle exec sidekiq -v -C ./config/sidekiq.yml

I can successfully start nginx using:

$ sudo service nginx start

However when I run $ foreman start, whilst the other three processes start successfully, nginx does not:

11:15:46 nginx.1   | started with pid 15966
11:15:46 unicorn.1 | started with pid 15968
11:15:46 redis.1   | started with pid 15971
11:15:46 sidekiq.1 | started with pid 15974
11:15:46 nginx.1   | Starting nginx: nginx.
11:15:46 nginx.1   | exited with code 0
11:15:46 system    | sending SIGTERM to all processes
SIGTERM received
11:15:46 unicorn.1 | terminated by SIGTERM
11:15:46 redis.1   | terminated by SIGTERM
11:15:46 sidekiq.1 | terminated by SIGTERM

So why isn’t nginx starting when started by Foreman?

  • 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-06-18T05:33:43+00:00Added an answer on June 18, 2026 at 5:33 am

    The is a problem in your Procfile.

    The nginx command can’t use sudo inside foreman, because it will always ask for a password and then it will fail. That’s why you are not starting nginx and the logs are empty.

    If you really need to use sudo inside a procfile you could use something like this:

    sudo_app: echo "sudo_password" | sudo -S app_command
    nginx: echo "sudo_password" | sudo -S service nginx start
    

    which I really don’t recommend. Other option is to call sudo foreman start

    For more information check out this issue on github, it is precisely what you want to solve.

    Keep me posted if it works for you.

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

Sidebar

Related Questions

How to get currently running application without using a system process?
I'm currently running Matplotlib 0.99.1.1 on Ubuntu 10.04 LTS (Lucid Lynx). I would like
I'm currently running a working Spring + Apache Tiles webapp. I need to show
How to find the currently running SharePoint 2007 Timer jobs using STSADM?
I'm currently running a JPA/EJB/JSF application on Glassfish and using the security JDBC realm
I'm currently running a web-app that will send emails to users when they sign-up,
I'm currently running Visual Studio Team System 2010 RC and I'm trying to get
I am currently running the latest version of Code-blocks in Ubuntu 11.04. I have
I am currently running a Solr client/server pair which is working fine. However, in
I'm currently running Windows 7, and I'd like to be able to check whats

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.