Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   Ruby (http://www.velocityreviews.com/forums/f66-ruby.html)
-   -   Deamons.rb: changing the pid directory (http://www.velocityreviews.com/forums/t853594-deamons-rb-changing-the-pid-directory.html)

Mike Nicholaides 10-11-2008 10:27 PM

Deamons.rb: changing the pid directory
 
Hey folks,

Does anyone know how I can change the directory that the pid file is put
in when using the Daemons gem (http://daemons.rubyforge.org/) ?

Thanks!
Mike
--
Posted via http://www.ruby-forum.com/.


Brian Candler 10-12-2008 09:25 AM

Re: Deamons.rb: changing the pid directory
 
Look in the rdoc documentation for Daemons::Pidfile. If daemons is
installed as a gem, then

gem server --daemon

and point web browser at http://localhost:8808/

Or just read the comments in the source, which will probably be
installed somewhere like

/usr/lib/ruby/gems/1.8/gems/daemons-1.0.10/lib/daemons/pidfile.rb

There you will find the following documentation:

# === Where are the Pid-Files stored?
#
# Daemons is configurable to store the Pid-Files relative to three
different locations:
# 1. in a directory relative to the directory where the script (the
one that is supposed to run
# as a daemon) resides (<tt>:script</tt> option for
<tt>:dir_mode</tt>)
# 2. in a directory given by <tt>:dir</tt> (<tt>:normal</tt> option
for <tt>:dir_mode</tt>)
# 3. in the preconfigured directory <tt>/var/run</tt>
(<tt>:system</tt> option for <tt>:dir_mode</tt>)
--
Posted via http://www.ruby-forum.com/.



All times are GMT. The time now is 10:03 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57