Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Args for setting log path and pid path ignored in mkdir ~/.scout call #47

Open
jpotter opened this issue Jul 3, 2014 · 1 comment
Open

Comments

@jpotter
Copy link

jpotter commented Jul 3, 2014

Hi,

On our system, we're running scout under a supervisor where $HOME isn't writeable.

The code has this:

# by default, scout_realtime puts its pid and logfile in ~/.scout/
home_dir =  File.join( (File.expand_path("~") rescue "/"), ".scout" )
FileUtils.mkdir_p(home_dir) # ensure home directory exists
pid_path = File.join(home_dir, "scout_realtime.pid")
log_path = File.join(home_dir, "scout_realtime.log")

This code fails, even when --pid-file and --log-file point those entries elsewhere.

Can the mkdir_p call be moved to where the pid_path and log_path are opened, and run on the directories associated with those values, as opposed to assuming it's going to be under ~/.scout?

Thanks!
Jeff

@jpotter jpotter changed the title Args for setting log path and pid path Args for setting log path and pid path ignored in mkdir ~/.scout call Jul 3, 2014
@andre
Copy link
Contributor

andre commented Jul 7, 2014

Hi @jpotter, I agree this would be a good addition, and I'd be happy to review a pull request for it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants