Deamons.rb: changing the pid directory

B

Brian Candler

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>)
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top