Initial import to Tizen
[profile/ivi/python-twisted.git] / doc / core / howto / tutorial / listings / finger / simple-finger.tac
1 # simple-finger.tac
2 # eg:  twistd -ny simple-finger.tac
3
4 from twisted.application import service
5
6 import finger
7
8 options = { 'file': '/etc/users',
9             'templates': '/usr/share/finger/templates',
10             'ircnick': 'fingerbot',           
11             'ircserver': 'irc.freenode.net',
12             'pbport': 8889,
13             'ssl': 'ssl=0' }
14
15 ser = finger.makeService(options)
16 application = service.Application('finger', uid=1, gid=1)
17 ser.setServiceParent(service.IServiceCollection(application))