# Trouble with 'require' and 'include' in daemons

**URL:** <https://www.ruby-forum.com/t/trouble-with-require-and-include-in-daemons/171934>\
**Category:** Ruby\
**Created:** [July 11, 2009, 9:26pm UTC](https://www.ruby-forum.com/t/trouble-with-require-and-include-in-daemons/171934 "2009-07-11T21:26:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![explainer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/bbce88/32.png) [@explainer](https://www.ruby-forum.com/u/explainer)\
**Post date:** [July 11, 2009, 9:26pm UTC](https://www.ruby-forum.com/t/trouble-with-require-and-include-in-daemons/171934/1 "2009-07-11T21:26:03Z")

</div>

I am using the deamons gem to implement a set of daemons listening to  
various things, and am launching the daemons from a Rails app. I am  
having trouble with getting the require and include operations to work  
in the daemon. I am assuming that I don’t have the correct  
environment/load path set up in the daemon, but I am unclear what I  
need. I know I can set ENV variables in the daemon launcher, and see  
them in the daemon, but don’t know exactly which to set. I have set  
the value of RAILS\_ROOT in one ENV variable, that certainly helps, but  
more is needed. Any suggestions?
