'Construct a Tribler service.'

def makeService(self, options):

    tribler_service = MultiService()
    tribler_service.setName('Tribler')
    manhole_namespace = {}
    if (options['manhole'] > 0):
        port = options['manhole']
        manhole = manhole_tap.makeService({'namespace': manhole_namespace, 'telnetPort': ('tcp:%d:interface=127.0.0.1' % port), 'sshPort': None, 'passwd': os.path.join(os.path.dirname(__file__), 'passwd')})
        tribler_service.addService(manhole)
    reactor.callWhenRunning(self.start_tribler, options)
    return tribler_service
