Пример #1
0
    def reload_squid(self):
        """
        Reload squid service

        Uses the old API
        """
        from mmc.support.mmctools import ServiceManager
        SM = ServiceManager(self.squidInit, self.squidPid)
        SM.reload()
Пример #2
0
    def reload_squid(self):
        """
        Reload squid service

        Uses the old API
        """
        from mmc.support.mmctools import ServiceManager
        SM = ServiceManager(self.squidInit, self.squidPid)
        SM.reload()
Пример #3
0
Файл: dns.py Проект: allgi/mmc
 def __init__(self, conffile=None):
     self.config = mmc.plugins.network.NetworkConfig("network", conffile)
     ServiceManager.__init__(self, self.config.dnsPidFile,
                             self.config.dnsInit)
Пример #4
0
 def __init__(self):
     self.config = ShorewallPluginConfig("shorewall")
     ServiceManager.__init__(self, self.config.service["pid"], self.config.service["init"])
Пример #5
0
Файл: dns.py Проект: allgi/mmc
 def __init__(self, conffile = None):
     self.config = mmc.plugins.network.NetworkConfig("network", conffile)
     ServiceManager.__init__(self, self.config.dnsPidFile, self.config.dnsInit)
Пример #6
0
 def __init__(self):
     self.config = ShorewallPluginConfig("shorewall")
     ServiceManager.__init__(self, self.config.service["pid"],
                             self.config.service["init"])