path: root/whatmaps/distro.py
diff options
authorGuido Günther <agx@sigxcpu.org>2014-07-01 11:12:37 +0200
committerGuido Günther <agx@sigxcpu.org>2014-07-01 11:12:55 +0200
commit8771fbcf584d1d5f6eaa8aad9dc9978e94176dfc (patch)
tree8a9c6a803409e342f10a2c88dc3b1b60f3f6beb4 /whatmaps/distro.py
parentfe1c3af968020b906a8ca417fee1dd80673d9b9f (diff)
Document class variables
Diffstat (limited to 'whatmaps/distro.py')
1 files changed, 8 insertions, 0 deletions
diff --git a/whatmaps/distro.py b/whatmaps/distro.py
index b2e2c82..a575a70 100644
--- a/whatmaps/distro.py
+++ b/whatmaps/distro.py
@@ -28,7 +28,15 @@ except ImportError:
class Distro(object):
A distribution
@cvar id: distro id as returned by lsb-release
+ @cvar service_blacklist: services that should never be restarted
+ @cvar _pkg_services: A C{dict} that maps packages to services. In
+ case we find binaries that match a key in this hash restart
+ the services listed in values.
+ @cvar _pkg_service_blacklist: if we find binaries in the package
+ listed as key don't restart services listed in values
id = None
service_blacklist = set()