def METHOD_NAME(check_daemon_status, duthosts, rand_one_dut_hostname):
    """
    @summary: This test case is to check the fancontrol terminated and restarted status
    """
    duthost = duthosts[rand_one_dut_hostname]
    pre_daemon_status, pre_daemon_pid = duthost.get_pmon_daemon_status(daemon_name)
    logger.info("{} daemon is {} with pid {}".format(daemon_name, pre_daemon_status, pre_daemon_pid))
    duthost.stop_pmon_daemon(daemon_name, SIG_TERM, pre_daemon_pid)
    time.sleep(2)
    daemon_status, daemon_pid = duthost.get_pmon_daemon_status(daemon_name)
    pytest_assert(daemon_status == expected_exited_status,
                  "{} expected terminated status is {} but is {}"
                  .format(daemon_name, expected_exited_status, daemon_status))
    pytest_assert(daemon_pid == -1,
                  "{} expected pid is a positive number not {}".format(daemon_name, daemon_pid))
    duthost.start_pmon_daemon(daemon_name)
    time.sleep(10)
    post_daemon_status, post_daemon_pid = duthost.get_pmon_daemon_status(daemon_name)
    pytest_assert(post_daemon_status == expected_running_status,
                  "{} expected restarted status is {} but is {}"
                  .format(daemon_name, expected_running_status, post_daemon_status))
    pytest_assert(post_daemon_pid != -1,
                  "{} expected pid is -1 but is {}".format(daemon_name, post_daemon_pid))
    pytest_assert(post_daemon_pid > pre_daemon_pid,
                  "Restarted {} pid should be bigger than {} but it is {}"
                  .format(daemon_name, pre_daemon_pid, post_daemon_pid))