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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:23:56+00:00 2026-05-26T19:23:56+00:00

I’ve got a rails website and a small minecraft server running on a linode

  • 0

I’ve got a rails website and a small minecraft server running on a linode vps. I’m running minecraft as a custom service off of a ram server based on an init.d file. Since I’m using God to monitor my rails website I thought I’d use it for minecraft as well, but it doesn’t seem to be able to recognize the service in any way. The conditions don’t detect its presence. :process_running always returns false, whether it’s running or not, and fail to start it when it isn’t. To add to the confusion :memory_usage and :cpu_usage are always zero.

My /etc/init.d/minecraft file is here:
http://pastie.org/2760483

It works perfectly well, and ‘service minecraft start’ and whatnot gives me pretty much everything I need. My hope was to be able to put it to sleep it automatically through god whenever the cpu usage got high to prioritize the website. However none of the god conditions are figuring out what’s going on with the process.

My /opt/god/minecraft.god file is here:
http://pastie.org/2760498

Obviously the low cpu in that is an attempt to get a rise out of god. Asking for a smiting, if you will.

Trying to run god off the config:
sudo god -c minecraft.god -D

yields:

I [2011-10-26 01:55:55]  INFO: Loading minecraft.god
I [2011-10-26 01:55:55]  INFO: Syslog enabled.
I [2011-10-26 01:55:55]  INFO: Using pid file directory: /var/run/god
I [2011-10-26 01:55:55]  INFO: Socket already in use
I [2011-10-26 01:55:55]  INFO: Socket is stale, reopening
I [2011-10-26 01:55:55]  INFO: Started on drbunix:///tmp/god.17165.sock
I [2011-10-26 01:55:55]  INFO: minecraft move 'unmonitored' to 'up'
I [2011-10-26 01:55:55]  INFO: minecraft moved 'unmonitored' to 'up'
I [2011-10-26 01:55:55]  INFO: minecraft [ok] memory within bounds [0kb] (MemoryUsage)
I [2011-10-26 01:55:55]  INFO: minecraft [ok] cpu within bounds [0%%] (CpuUsage)
  • 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-26T19:23:57+00:00Added an answer on May 26, 2026 at 7:23 pm

    As far as I can tell the problem you’re having is that you’re not supplying god with a pidfile. As quoted from the god webpage:

    If the process you’re watching runs as a daemon (as mine does),
    you’ll need to set the pid_file attribute.

    Full text here: http://god.rubyforge.org/

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

Sidebar

Related Questions

I used javascript for loading a picture on my website depending on which small
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I am currently running into a problem where an element is coming back from
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
i got an object with contents of html markup in it, for example: string
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function

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.