ruby on rails - Determine if Thin server is running as daemon -


i have problem rails , thin server. reason, thin clears out argv variable (i don't ask why :/), , rails application needs determine if thin running daemon server. tried access/find server object in application , rack variables, no luck. if way access thin instance options, or original argv, can parse , figure out if thin running daemon?

solved :)

objectspace.each_object(thin::runner) { |obj| @options = obj.options } @options[:daemonize] 

Comments

Popular posts from this blog

Load Balancing in Bluemix using custom domain and DNS SRV records -

oracle - pls-00402 alias required in select list of cursor to avoid duplicate column names -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -