Exemple #1
0
    def stop(self, env):
        # Import properties defined in -config.xml file from the params class
        import params

        # Import properties defined in -env.xml file from the status_params class
        import status_params

        # This allows us to access the params.elastic_pid_file property as
        env.set_params(params)

        #Execute("kill ` ps -ax |grep node-server.js | grep -v grep |awk '{print $1}' `")
        kill_process(params.elastic_web_pid_file, params.elastic_user,
                     params.elastic_log_dir)
Exemple #2
0
    def stop(self, env):
        # Import properties defined in -config.xml file from the params class
        import params

        # Import properties defined in -env.xml file from the status_params class
        import status_params

        # This allows us to access the params.elastic_pid_file property as
        #  format('{elastic_pid_file}')
        env.set_params(params)

        # Stop Elasticsearch
        kill_process(params.elastic_pid_file, params.elastic_user, params.elastic_log_dir)
Exemple #3
0
    def stop(self, env):
        # Import properties defined in -config.xml file from the params class
        import params

        # Import properties defined in -env.xml file from the status_params class
        import status_params

        # This allows us to access the params.elastic_pid_file property as
        #  format('{elastic_pid_file}')
        env.set_params(params)

        # Stop Elasticsearch

        #Execute("sudo service elasticsearch stop")
        #if os.path.isfile(status_params.elastic_pid_file):
        kill_process(params.elastic_pid_file, params.elastic_user, params.elastic_log_dir)