Does the user running ambari agent have permission to cat the pid file and check if that process is up?
Thanks, Alejandro From: Mauro Cortellazzi <[email protected]<mailto:[email protected]>> Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Date: Monday, February 1, 2016 at 2:06 AM To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: Check status for custom service doesn't work Hi All, I'm using Ambari 2.1.2 with HDP 2.3 and I have created a custom service following this guide: <http://mozartanalytics.com/how-to-create-a-software-stack-for-ambari/>http://mozartanalytics.com/how-to-create-a-software-stack-for-ambari/ Once the service is installed I'm able to start it and stop it with Ambari, but the check status method always said me that service is not running (but it's running). The status function is similar to the code below (I have only change the path of the pid file): def status(self, env): pid_file = "/var/run/my-service.pid" check_process_status(pid_file) I've checked the file and its content: it is created in the right and it contains the correct pid. I've checked the check_process_status code and I have seen that it does a "kill -0 <PID>", so I tried the same command in the shell and it works properly. The python version used is 2.7. Does anyone have a suggestion? Many thanks for your help and your time!! Bests. Mauro
