def start_watchdog(): global TipcSettings # check whether watchdog exist watchdog_pid = get_watchdog_pid() if not watchdog_pid: if TipcSettings=='enforce': safplus_tipc.unload_tipc_module() if TipcSettings!='ignore': safplus_tipc.load_config_tipc_module() set_ld_library_paths() # setsid <prog> & daemonizes... cmd = 'setsid %s/safplus_watchdog.py &' % safplus.SAFPLUS_ETC_DIR os.system(cmd) else: safplus.fail_and_exit('SAFplus is already running on node [%s], pid [%s]' % (safplus.get_safplus_node_addr(), watchdog_pid))
def start_watchdog(): global TipcSettings # check whether watchdog exist watchdog_pid = get_watchdog_pid() if not watchdog_pid: if TipcSettings == 'enforce': safplus_tipc.unload_tipc_module() if TipcSettings != 'ignore': safplus_tipc.load_config_tipc_module() set_ld_library_paths() # setsid <prog> & daemonizes... cmd = 'setsid %s/safplus_watchdog.py &' % safplus.SAFPLUS_ETC_DIR os.system(cmd) else: safplus.fail_and_exit( 'SAFplus is already running on node [%s], pid [%s]' % (safplus.get_safplus_node_addr(), watchdog_pid))
def start_watchdog(): global tipc_settings # check whether watchdog exist watchdog_pid = get_watchdog_pid() if not watchdog_pid: if safplus_tipc.has_tipc_plugin() and (safplus_tipc.ignore_tipc_settings() == False): if safplus_tipc.enforce_tipc_settings() == True: safplus_tipc.unload_tipc_module() safplus_tipc.load_config_tipc_module() set_ld_library_paths() codeBootFile = safplus.SAFPLUS_RUN_DIR + '/' + safplus.SAFPLUS_CODEBOOT_FILE safplus.touch(codeBootFile) # create 'safplus_codeboot' file to indicate start-up of SAFplus_AMF # setsid <prog> & daemonizes... cmd = 'setsid %s/safplus_watchdog.py &' % safplus.SAFPLUS_ETC_DIR os.system(cmd) else: safplus.fail_and_exit('SAFplus is already running on node [%s], pid [%s]' % (safplus.get_safplus_node_addr(), watchdog_pid))
def start_watchdog(): global tipc_settings # check whether watchdog exist watchdog_pid,sandbox = get_watchdog_pid() if not watchdog_pid: if safplus_tipc.has_tipc_plugin() and (safplus_tipc.ignore_tipc_settings() == False): if safplus_tipc.enforce_tipc_settings() == True: safplus_tipc.unload_tipc_module() safplus_tipc.load_config_tipc_module() set_ld_library_paths() codeBootFile = safplus.SAFPLUS_RUN_DIR + '/' + safplus.SAFPLUS_CODEBOOT_FILE safplus.touch(codeBootFile) # create 'safplus_codeboot' file to indicate start-up of SAFplus_AMF # setsid <prog> & daemonizes... cmd = 'setsid %s/safplus_watchdog.py &' % safplus.SAFPLUS_ETC_DIR os.system(cmd) else: #safplus.fail_and_exit('SAFplus is already running on node [%s], pid [%s]' % (safplus.get_safplus_node_addr(), watchdog_pid)) safplus.fail_and_exit('SAFplus is already running from sandbox [%s]' % sandbox)