demo_app.service module¶
-
demo_app.service.
on_service_install
()¶ This method will run only once - when the service is installed through Ambari.
Fill in this method with any necessary one-time commands to set up the environment before starting the demo.
Note this method will only be run after the demo has run its setup commands. This method will always be the last thing to be run before starting the service.
-
demo_app.service.
on_service_start
()¶ This method will run every time the service start
Fill in this method with any necessary commands to set up and start other services for the demo
Note that this method will always be the very last thing to be executed upon starting the demo service
-
demo_app.service.
on_service_stop
()¶ This method will run every time the service stops
Fill in this method with any necessary commands to clean up or stop other services from the demo
Note that this method will always be the very last thing to be executed upon stopping the demo service.