From 326fcd3b80bc84b5e30c6725280402a549a208bc Mon Sep 17 00:00:00 2001 From: Narayan Desai Date: Thu, 31 Mar 2005 19:42:10 +0000 Subject: 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 --- src/lib/Client/Debian.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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''' -- cgit v1.2.3-1-g7c22