summaryrefslogtreecommitdiffstats
path: root/ipa-client/ipaclient/ntpconf.py
diff options
context:
space:
mode:
authorAlexander Bokovoy <abokovoy@redhat.com>2011-08-30 17:15:46 +0300
committerAlexander Bokovoy <abokovoy@redhat.com>2011-08-30 17:15:46 +0300
commit9a8dcd1a18b461ae9164a1d0718f7d51e17b7fd6 (patch)
treeb3a02581e16e5ec0427289c134bf8c9ea0c2ae86 /ipa-client/ipaclient/ntpconf.py
parentcc337bd282abd8b595423d772bef22989e7c7436 (diff)
downloadfreeipa-9a8dcd1a18b461ae9164a1d0718f7d51e17b7fd6.tar.gz
freeipa-9a8dcd1a18b461ae9164a1d0718f7d51e17b7fd6.tar.xz
freeipa-9a8dcd1a18b461ae9164a1d0718f7d51e17b7fd6.zip
Convert ipa-client/ bitsipautil-refactor
Diffstat (limited to 'ipa-client/ipaclient/ntpconf.py')
-rw-r--r--ipa-client/ipaclient/ntpconf.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ipa-client/ipaclient/ntpconf.py b/ipa-client/ipaclient/ntpconf.py
index 6054e5e59..3042005f4 100644
--- a/ipa-client/ipaclient/ntpconf.py
+++ b/ipa-client/ipaclient/ntpconf.py
@@ -18,6 +18,7 @@
#
from ipapython import ipautil
+from ipapython import services as ipaservices
import shutil
ntp_conf = """# Permit time synchronization with our time source, but do not
@@ -105,7 +106,7 @@ def config_ntp(server_fqdn, fstore = None):
fd.close()
# Set the ntpd to start on boot
- ipautil.run(["/sbin/chkconfig", "ntpd", "on"])
+ ipaservices.knownservices.ntpd.enable()
# Restart ntpd
- ipautil.run(["/sbin/service", "ntpd", "restart"])
+ ipaservices.knownservices.ntpd.restart()