Browse Source

AMBARI-15341: Use pxf-service restart method when Restart action is called via Ambari (bhuvnesh2703 via mithmatt)

Matt 9 years ago
parent
commit
e1762a4281

+ 4 - 0
ambari-server/src/main/resources/common-services/PXF/3.0.0/package/scripts/pxf.py

@@ -58,6 +58,10 @@ class Pxf(Script):
     self.__execute_service_command("stop")
 
 
+  def restart(self, env):
+    self.start(env)
+
+
   def status(self, env):
     try:
       self.__execute_service_command("status")