drop chkconfig from the dependencies

This commit is contained in:
Timo Aaltonen
2013-02-28 10:05:27 +02:00
parent f11d91a308
commit 8684bcb328
2 changed files with 5 additions and 6 deletions

1
debian/control vendored
View File

@@ -90,7 +90,6 @@ Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends},
python-freeipa (= ${binary:Version}),
bind9utils,
certmonger,
chkconfig,
krb5-user,
libcurl3 (>= 7.22.0),
libnss3-tools,

View File

@@ -76,7 +76,7 @@ Date: Fri Oct 28 15:57:04 2011 +0300
+ def is_enabled(self):
+ ret = True
+ try:
+ (sout,serr,rcode) = ipautil.run(["/sbin/chkconfig", self.service_name])
+ (sout,serr,rcode) = ipautil.run(["/usr/sbin/service", self.service_name, "status"])
+ if sout.find("off") >= 0:
+ ret = False
+ if sout.find("unknown service") >= 0:
@@ -86,16 +86,16 @@ Date: Fri Oct 28 15:57:04 2011 +0300
+ return ret
+
+ def enable(self):
+ ipautil.run(["/sbin/chkconfig", self.service_name, "on"])
+ return True
+
+ def disable(self):
+ ipautil.run(["/sbin/chkconfig", self.service_name, "off"])
+ return True
+
+ def install(self):
+ ipautil.run(["/sbin/chkconfig", "--add", self.service_name])
+ return True
+
+ def remove(self):
+ ipautil.run(["/sbin/chkconfig", "--del", self.service_name])
+ return True
+
+class DebianAuthConfig(base.AuthConfig):
+ """