Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Logs are empty until a process is stopped
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ivan el Magnifico  
View profile  
 More options Oct 27 2011, 9:47 am
From: Ivan el Magnifico <jaidron.skye...@gmail.com>
Date: Thu, 27 Oct 2011 06:47:22 -0700 (PDT)
Local: Thurs, Oct 27 2011 9:47 am
Subject: Logs are empty until a process is stopped
Hi,

I'm relatively new to god, but I've been able to set it up mostly
right.

On issue I haven't been able to fix, is for this watch:

God.watch do |w|
  w.dir      = 'some dir'
  w.name     = 'rapns'
  w.group    = 'some app'
  w.interval = 30.seconds
  w.pid_file = "some pid.pid"
  w.gid = 'user'
  w.uid = 'group'
  w.start    = "bundle exec rapns production --foreground >
somelog.log"
  w.log = "some path/god.log"
end

Why the --foreground switch and the output redirection you ask? Well,
I've tested several approaches, and none of them write to the log.
With just "bundle exec rapns production", the god.log file does get
written, but only *after* I kill the rapns process. With the method I
show, it's the same, but for the somelog.log file.

Is this an issue with the rapns process or is there something I'm
doing all wrong?

Thanks!

- Ivan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave Newman  
View profile  
 More options Oct 27 2011, 5:30 pm
From: Dave Newman <ddanger...@gmail.com>
Date: Fri, 28 Oct 2011 08:30:57 +1100
Local: Thurs, Oct 27 2011 5:30 pm
Subject: Re: Logs are empty until a process is stopped

 It could be the rapns process not flushing STDOUT.  Try adding:

STDOUT.sync = true

to bin/rapns

--
Dave Newman @whatupdave http://whatupdave.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ivan el Magnifico  
View profile  
 More options Oct 27 2011, 9:06 pm
From: Ivan el Magnifico <jaidron.skye...@gmail.com>
Date: Thu, 27 Oct 2011 18:06:51 -0700 (PDT)
Local: Thurs, Oct 27 2011 9:06 pm
Subject: Re: Logs are empty until a process is stopped
Thanks! I'll try that out.

On Oct 27, 4:30 pm, Dave Newman <ddanger...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »