twisted/plugins/fixbot_logwatch_plugin.py
author Tero Marttila <terom@fixme.fi>
Wed, 17 Sep 2008 20:30:54 +0300
changeset 26 a7f74dd6d4e5
parent 25 6c0a53a512d8
child 40 b9fdb7710768
permissions -rw-r--r--
working init.d/defaults scripts
from zope.interface import implements

from twisted.python import usage
from twisted.plugin import IPlugin
from twisted.application.service import IServiceMaker

from twisted.application import internet

from fixbot import api, logwatch

class LogwatchOptions (api.ClientOptions) :
    optParameters = [

    ]

    optFlags = [

    ]
    
class MyServiceMaker (object) :
    implements(IServiceMaker, IPlugin)
    tapname = "fixbot_logwatch"
    description = "FixBot (Logwatcher component)"
    options = LogwatchOptions

    def makeService (self, config) :
        return logwatch.makeService(config)

serviceMaker = MyServiceMaker()