Deamons.rb: changing the pid directory

Discussion in 'Ruby' started by Mike Nicholaides, Oct 11, 2008.

  1. Mike Nicholaides, Oct 11, 2008
    #1
    1. Advertising

  2. 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/.
    Brian Candler, Oct 12, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    643
  2. Sigal

    Process PID

    Sigal, Feb 18, 2004, in forum: Perl
    Replies:
    1
    Views:
    704
    Sigal
    Feb 18, 2004
  3. Mav
    Replies:
    2
    Views:
    564
  4. Andrew Zhilenko
    Replies:
    0
    Views:
    791
    Andrew Zhilenko
    Nov 22, 2004
  5. Moritz Karbach

    deamons and IPC

    Moritz Karbach, May 12, 2005, in forum: Perl Misc
    Replies:
    5
    Views:
    98
    Anno Siegel
    May 13, 2005
Loading...

Share This Page