diff options
author | Joe Digilio <jdigilio@imca.aps.anl.gov> | 2011-03-25 11:56:50 -0500 |
---|---|---|
committer | Joe Digilio <jdigilio@imca.aps.anl.gov> | 2011-03-25 11:56:50 -0500 |
commit | 9fde0bc9a7d45c3215f6d4125f6bbbe257f05f15 (patch) | |
tree | 2672d0fd5a16c00139ea9861455a7822adddc0d5 /src/lib/Client | |
parent | 1d9cae6d4761aec978e8cf78ebdebd32571b531a (diff) | |
download | bcfg2-9fde0bc9a7d45c3215f6d4125f6bbbe257f05f15.tar.gz bcfg2-9fde0bc9a7d45c3215f6d4125f6bbbe257f05f15.tar.bz2 bcfg2-9fde0bc9a7d45c3215f6d4125f6bbbe257f05f15.zip |
add ability to ignore a debian Service
Diffstat (limited to 'src/lib/Client')
-rw-r--r-- | src/lib/Client/Tools/DebInit.py | 4 | ||||
-rw-r--r-- | src/lib/Client/Tools/Upstart.py | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/Client/Tools/DebInit.py b/src/lib/Client/Tools/DebInit.py index 119036b32..fc67a73e4 100644 --- a/src/lib/Client/Tools/DebInit.py +++ b/src/lib/Client/Tools/DebInit.py @@ -21,6 +21,10 @@ class DebInit(Bcfg2.Client.Tools.SvcTool): # implement entry (Verify|Install) ops def VerifyService(self, entry, _): """Verify Service status for entry.""" + + if entry.get('status') == 'ignore': + return True + rawfiles = glob.glob("/etc/rc*.d/[SK]*%s" % (entry.get('name'))) files = [] diff --git a/src/lib/Client/Tools/Upstart.py b/src/lib/Client/Tools/Upstart.py index b75b0927e..7a94a07f3 100644 --- a/src/lib/Client/Tools/Upstart.py +++ b/src/lib/Client/Tools/Upstart.py @@ -29,6 +29,10 @@ class Upstart(Bcfg2.Client.Tools.SvcTool): /etc/init/servicename.conf. All we need to do is make sure the service is running when it should be. """ + + if entry.get('status') == 'ignore': + return True + if entry.get('parameters'): params = entry.get('parameters') else: |