kostya / eye

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

Unable to start with init.d script #214

Open normelton opened 6 years ago

normelton commented 6 years ago

I've got an init.d script that starts eye. It appears that during boot, there is no HOME variable set. Makes sense. Except this causes eye to fail (HOME undefined, should be HOME or EYE_HOME environment).

I noticed that if I configure EYE_HOME, it will put the pid and socket files there. When I login and check eye's status, it looks in the default /var/run/eye directory, can't find them, and complain that the server is not running. I've worked around the issue by defining export HOME=/root at the top of my init.d script.

Is this expected behavior?

Thanks!!

Norman

kostya commented 6 years ago

HOME not required for root user, but for custom user HOME should be.