diff options
author | Alexander Bokovoy <abokovoy@redhat.com> | 2011-10-10 15:25:15 +0300 |
---|---|---|
committer | Alexander Bokovoy <abokovoy@redhat.com> | 2011-10-24 10:36:57 +0300 |
commit | 3eeac76b3b061c798a1d0e101c197cc78489d5e7 (patch) | |
tree | 585825bd290a15428336ae1594b0aad1f6ee0de2 /ipapython/platform/redhat.py | |
parent | 7bde6a7da90dfc5f8953736f27cf9e17e82d14f2 (diff) | |
download | freeipa-3eeac76b3b061c798a1d0e101c197cc78489d5e7.tar.gz freeipa-3eeac76b3b061c798a1d0e101c197cc78489d5e7.tar.xz freeipa-3eeac76b3b061c798a1d0e101c197cc78489d5e7.zip |
Add support for systemd environments and use it to support Fedora 16
https://fedorahosted.org/freeipa/ticket/1192
Diffstat (limited to 'ipapython/platform/redhat.py')
-rw-r--r-- | ipapython/platform/redhat.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ipapython/platform/redhat.py b/ipapython/platform/redhat.py index 5ac310609..d99a91747 100644 --- a/ipapython/platform/redhat.py +++ b/ipapython/platform/redhat.py @@ -66,20 +66,20 @@ class RedHatService(base.PlatformService): installed = False return installed - def is_enabled(self): + def is_enabled(self, instance_name=""): (stdout, stderr, returncode) = ipautil.run(["/sbin/chkconfig", self.service_name],raiseonerr=False) return (returncode == 0) - def enable(self): + def enable(self, instance_name=""): ipautil.run(["/sbin/chkconfig", self.service_name, "on"]) - def disable(self): + def disable(self, instance_name=""): ipautil.run(["/sbin/chkconfig", self.service_name, "off"]) - def install(self): + def install(self, instance_name=""): ipautil.run(["/sbin/chkconfig", "--add", self.service_name]) - def remove(self): + def remove(self, instance_name=""): ipautil.run(["/sbin/chkconfig", "--del", self.service_name]) class RedHatAuthConfig(base.AuthConfig): |