peterkeen / dokuen

A personal PaaS for mac and linux
548 stars 19 forks source link

Load the environment each time subprocess restarts #11

Closed peterkeen closed 12 years ago

peterkeen commented 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.