kostya / eye

Process monitoring tool. Inspired from Bluepill and God.
MIT License
1.19k stars 89 forks source link

Why root directory is hard coded? #206

Closed chrisortman closed 6 years ago

chrisortman commented 6 years ago

I'm running into a problem with this behavior

https://github.com/kostya/eye/blob/145b6ca66bc602d1950a8064676df58a97c0e4fa/lib/eye/local.rb#L9

I run leye as a non-privileged user with no login shell. When I do this I specify that EYE_HOME should point to some directory. This makes it so that as a root user I can not run any eye commands because the sock is never found as it always looks in the /var/run directory

grimm26 commented 6 years ago

You can/should also set EYE_SOCK and EYE_PID

kostya commented 6 years ago

should work in 0.9.4

chrisortman commented 6 years ago

Thanks!