diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2005-03-31 19:42:10 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2005-03-31 19:42:10 +0000 |
commit | 326fcd3b80bc84b5e30c6725280402a549a208bc (patch) | |
tree | c56d536798045734893eb15ebd26ec684d6b9816 | |
parent | f4489809c74cf47559732eb472808afb82a1fb13 (diff) | |
download | bcfg2-326fcd3b80bc84b5e30c6725280402a549a208bc.tar.gz bcfg2-326fcd3b80bc84b5e30c6725280402a549a208bc.tar.bz2 bcfg2-326fcd3b80bc84b5e30c6725280402a549a208bc.zip |
add service removal
(Logical change 1.216)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@910 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r-- | src/lib/Client/Debian.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/Client/Debian.py b/src/lib/Client/Debian.py index 657f749bb..e1baf1089 100644 --- a/src/lib/Client/Debian.py +++ b/src/lib/Client/Debian.py @@ -141,7 +141,12 @@ class Debian(Toolset): else: self.CondPrint('verbose', "Need to remove packages: %s" % self.pkgwork['remove']) if len(self.extra_services) > 0: - self.CondPrint('verbose', "Need to remove services: %s" % self.extra_services) + if self.setup['remove'] in ['all', 'services']: + self.CondPrint("Removing services: %s" % self.extra_services) + for service in self.extra_services: + system("rm -f /etc/rc*.d/S*%s" % service) + else: + self.CondPrint('verbose', "Need to remove services: %s" % self.extra_services) def Install(self): '''Correct detected misconfigurations''' |