diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-12-02 01:42:00 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-12-02 01:42:00 +0000 |
commit | 88625e1f89428d115c1c5a581286df8708cd5e6a (patch) | |
tree | 8936c192429fbe8e3a38e6ef74cc7f5b49b5543f | |
parent | 54da813bc88a19e7227e30b4160de6aa6ccb7d7b (diff) | |
download | bcfg2-88625e1f89428d115c1c5a581286df8708cd5e6a.tar.gz bcfg2-88625e1f89428d115c1c5a581286df8708cd5e6a.tar.bz2 bcfg2-88625e1f89428d115c1c5a581286df8708cd5e6a.zip |
Revert unintentional DebInit commit [bugfix]
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4021 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r-- | src/lib/Client/Tools/DebInit.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/Client/Tools/DebInit.py b/src/lib/Client/Tools/DebInit.py index a07ffb08c..9f52861a4 100644 --- a/src/lib/Client/Tools/DebInit.py +++ b/src/lib/Client/Tools/DebInit.py @@ -45,12 +45,8 @@ class DebInit(Bcfg2.Client.Tools.SvcTool): self.cmd.run("/usr/sbin/invoke-rc.d %s stop" % (entry.get('name'))) cmdrc = self.cmd.run("/usr/sbin/update-rc.d -f %s remove" % entry.get('name'))[0] else: - if entry.get('start', False): - cmd = "/usr/sbin/update-rc.d %%s start %s 2 3 4 5 . stop %s 0 1 6" - cmd = cmd % (entry.get('start'), entry.get('stop', '20')) - else: - cmd = "/usr/sbin/update-rc.d %s defaults" - cmdrc = self.cmd.run(cmd % (entry.get('name')))[0] + cmdrc = self.cmd.run("/usr/sbin/update-rc.d %s defaults" % \ + (entry.get('name')))[0] return cmdrc == 0 def FindExtra(self): |