Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

-s directive not saved on `thin config`

#37

I'm running thin 0.6.3 on Ubuntu.

When I run thin config -s 3 -C /etc/thin/myapp.yml, I get:


pid: tmp/pids/thin.pid
log: log/thin.log
timeout: 60
port: 3000
environment: development
chdir: /etc/thin
address: 0.0.0.0
daemonize: true

which omits "servers: 3", although I set it...

Reported by James McKinney · February 8th, 2008 @ 10:52 PM

State: resolved
Milestone: 0.7.0
Assigned to: macournoyer macournoyer

Activity

  1. macournoyer
    macournoyer
    • Milestone set to 0.7.0
    • State changed from new to open

    nice catch James, seems to be the only option not saved to the config file. I'll fix that.

    February 8th, 2008 @ 11:48 PM

  2. Matt Todd
    Matt Todd

    The problem is that Controllers::Cluster#initialize deletes the :servers key from @options and stores it in @size.

    One potential solution would be to not delete :servers if the command is 'config'... but that value isn't immediately available in Controllers::Cluster#initialize.

    Alternatively, one solution could simply be to have a little wrapper Controllers::Cluster#config method that adds :servers back into @options.

    But, now you know why it's being left out.

    February 9th, 2008 @ 03:57 PM

  3. Matt Todd
    Matt Todd

    The problem is that Controllers::Cluster#initialize deletes the :servers key from @options and stores it in @size.

    One potential solution would be to not delete :servers if the command is 'config'... but that value isn't immediately available in Controllers::Cluster#initialize.

    Alternatively, one solution could simply be to have a little wrapper Controllers::Cluster#config method that adds :servers back into @options.

    But, now you know why it's being left out.

    February 9th, 2008 @ 03:38 PM

  4. macournoyer
    macournoyer
    • State changed from open to resolved

    Fixed in http://github.com/macournoyer/th...

    I removed the code deleting the options and just removed them before sending it as a command to individual servers. Let me know what you think Matt.

    and thx for reporting James.

    February 9th, 2008 @ 04:07 PM

  5. Matt Todd
    Matt Todd

    Seems good to me, considering it's a bit more forward-thinking so if you have other options you need to exclude later on, it's easy to update.

    Nice and simple solution.

    February 9th, 2008 @ 07:48 PM

  6. Matt Todd
    Matt Todd

    (Sorry for the double post... apparently had network problems when I posted it so didn't realize it went through the first time.)

    February 9th, 2008 @ 08:01 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.