'Return the function for the specified action.
Raises ``DaemonRunnerInvalidActionError`` if the action is
unknown.'

def _get_action_func(self):

    try:
        func = self.action_funcs[self.action]
    except KeyError:
        raise DaemonRunnerInvalidActionError(('Unknown    action:    %(action)r' % vars(self)))
    return func
