Exemplo n.º 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()
Exemplo n.º 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()
Exemplo n.º 3
0
Arquivo: dns.py Projeto: allgi/mmc
 def __init__(self, conffile=None):
     self.config = mmc.plugins.network.NetworkConfig("network", conffile)
     ServiceManager.__init__(self, self.config.dnsPidFile,
                             self.config.dnsInit)
Exemplo n.º 4
0
 def __init__(self):
     self.config = ShorewallPluginConfig("shorewall")
     ServiceManager.__init__(self, self.config.service["pid"], self.config.service["init"])
Exemplo n.º 5
0
Arquivo: dns.py Projeto: allgi/mmc
 def __init__(self, conffile = None):
     self.config = mmc.plugins.network.NetworkConfig("network", conffile)
     ServiceManager.__init__(self, self.config.dnsPidFile, self.config.dnsInit)
Exemplo n.º 6
0
 def __init__(self):
     self.config = ShorewallPluginConfig("shorewall")
     ServiceManager.__init__(self, self.config.service["pid"],
                             self.config.service["init"])