Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Ruby > Deamons.rb: changing the pid directory

Reply
Thread Tools

Deamons.rb: changing the pid directory

 
 
Mike Nicholaides
Guest
Posts: n/a
 
      10-11-2008
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/.

 
Reply With Quote
 
 
 
 
Brian Candler
Guest
Posts: n/a
 
      10-12-2008
Look in the rdoc documentation for Daemons:idfile. 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/.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System.IO.Directory.GetDirectories() and System.IO.Directory.GetFiles() are not returning the specified directory Nathan Sokalski ASP .Net 2 09-06-2007 03:58 PM
Embedded perl - how to find out real PID after fork Andrew Zhilenko Perl 0 11-22-2004 07:11 AM
Catch pid for a process that created Mav Perl 2 08-20-2004 08:56 PM
Process PID Sigal Perl 1 02-18-2004 03:20 PM
kill(0,$pid) return 1 after application is killed manually dkryzman@hotmail.com Perl 0 11-05-2003 10:16 PM



Advertisments