Closed peterkeen closed 12 years ago
In the wrapper, instead of calling load_env immediately after daemonize!, call it at the top of run_loop. This way, when the subprocess restarts it gets a fresh copy of the env.
load_env
daemonize!
run_loop
In the wrapper, instead of calling
load_env
immediately afterdaemonize!
, call it at the top ofrun_loop
. This way, when the subprocess restarts it gets a fresh copy of the env.