def __init__(self, pidfile, logger, port = <NUM_LIT>, host = '<STR_LIT:localhost>'):
super(RemoteControllerDeamon, self).__init__(pidfile, logger)<EOL>self.__port = port<EOL>self.__host = host<EOL>for name in dir(self):<EOL><INDENT>method = getattr(self, name)<EOL>if hasattr(method, '<STR_LIT>'):<EOL><INDENT>self.register_method(method, method.registered_for_rpc.__name__)<EOL><DEDENT><DEDENT>
Create a daemon which is controllable via jsonrpc with decorator

        Args:
            pidfile (str): path to create pid file
            logger (logging.Logger): logger for the daemon
            port (int):
            host (str):