eye icon indicating copy to clipboard operation
eye copied to clipboard

Unable to start with init.d script

Open normelton opened this issue 7 years ago • 1 comments

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

normelton avatar Jun 01 '18 14:06 normelton

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

kostya avatar Jun 01 '18 14:06 kostya