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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:48:59+00:00 2026-05-22T22:48:59+00:00

In /etc/thin/ I’ve got several yml files. When I run service thin stop -C

  • 0

In /etc/thin/ I’ve got several yml files. When I run service thin stop -C /etc/thin/app.yml thin stops all applications, instead of only the one I specified.

How do I get thin to stop/start only the specified application?

UPDATE: Hmm, in /etc/init.d/thin there’s this: $DAEMON restart --all $CONFIG_PATH. That explains a lot. Are there smarter init.d scripts? This is my script:

https://gist.github.com/1003131

See also:

Running Rails apps with thin as a service

  • 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-22T22:49:00+00:00Added an answer on May 22, 2026 at 10:49 pm

    you have to edit /etc/init.d/thin adding a new action or modifying the “restart” action.

    as you can see, –all $CONFIG_PATH sends the command to all thin instances.

    paste the init script somewhere, we can find a decent solution 😉

    UPDATE:

    try to add the following lines, below this:

    restart)
      $DAEMON restart --all $CONFIG_PATH
      ;;
    restart-single)
      $DAEMON restart -C $2
      ;;
    stop-single)
      $DAEMON stop -C $2
      ;;
    

    I didn’t tried it, but it should work well. this is a really simple solution (no error checking), we’ve added 2 new actions that must be called as:

    service thin restart-single /etc/thin/your_app.yml
    or
    service thin stop-single /etc/thin/your_app.yml
    

    let me know if it works 😉

    cheers,
    A.

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

Sidebar

Related Questions

So I'm trying to get thin to run as a service with RVM. After
I have a thin cluster set up to start 3 servers: /etc/thin/myapp.yml ... wait:
I want to add to my app a thin email client where you can
what are files in /etc/openldap/schema/ that sometimes included in slapd.conf?
/etc/init.d/* /etc/rc{1-5}.d/*
What do wikis/stackoverflow/etc. do when it comes to storing text? Is the text broken
Friends/family/etc ask me what I do and it always causes me pause while I
(vb.net/c#/etc) I am having trouble figuring out how to do a bit of deserialization
The keys ^¨~ ´` etc are dead keys on my swedish keyboard on Mac
when is serialization,marshaling etc required during communication between programs residing across 2 different machines

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.