diff options
author | Tomas Babej <tbabej@redhat.com> | 2014-05-29 10:37:18 +0200 |
---|---|---|
committer | Petr Viktorin <pviktori@redhat.com> | 2014-06-16 19:48:19 +0200 |
commit | 49fcd42f8fd71b894a0953a37f10a6c326e16048 (patch) | |
tree | 0c1324c5a3183ce20e92af183ffefde92a77147a /install/restart_scripts/restart_httpd | |
parent | 926f8647d2a676c1dd2e446633eb76cdf1a7bf0c (diff) | |
download | freeipa-49fcd42f8fd71b894a0953a37f10a6c326e16048.tar.gz freeipa-49fcd42f8fd71b894a0953a37f10a6c326e16048.tar.xz freeipa-49fcd42f8fd71b894a0953a37f10a6c326e16048.zip |
ipaplatform: Change service code in freeipa to use ipaplatform services
https://fedorahosted.org/freeipa/ticket/4052
Reviewed-By: Petr Viktorin <pviktori@redhat.com>
Diffstat (limited to 'install/restart_scripts/restart_httpd')
-rw-r--r-- | install/restart_scripts/restart_httpd | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/install/restart_scripts/restart_httpd b/install/restart_scripts/restart_httpd index 98337bc85..e8ff72824 100644 --- a/install/restart_scripts/restart_httpd +++ b/install/restart_scripts/restart_httpd @@ -22,12 +22,13 @@ import syslog import traceback from ipapython import services as ipaservices +from ipaplatform import services def main(): syslog.syslog(syslog.LOG_NOTICE, 'certmonger restarted httpd') try: - ipaservices.knownservices.httpd.restart() + services.knownservices.httpd.restart() except Exception, e: syslog.syslog(syslog.LOG_ERR, "Cannot restart httpd: %s" % str(e)) |