[PATCH 12/16] Fix editing error :"httpd.target" --> "httpd.service"
Johannes Graumann
johannes_graumann at web.de
Mon Oct 1 20:08:40 CEST 2012
---
pykolab/setup/setup_freebusy.py | 4 ++--
pykolab/setup/setup_mysql.py | 4 ++--
pykolab/setup/setup_roundcube.py | 4 ++--
pykolab/setup/setup_syncroton.py | 4 ++--
pykolab/setup/setup_zpush.py | 4 ++--
5 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/pykolab/setup/setup_freebusy.py b/pykolab/setup/setup_freebusy.py
index c1492cd..7fe7d5f 100644
--- a/pykolab/setup/setup_freebusy.py
+++ b/pykolab/setup/setup_freebusy.py
@@ -110,7 +110,7 @@ def execute(*args, **kw):
time.sleep(2)
if os.path.isfile('/bin/systemctl'):
- subprocess.call(['/bin/systemctl', 'restart', 'httpd.target'])
+ subprocess.call(['/bin/systemctl', 'restart', 'httpd.service'])
elif os.path.isfile('/sbin/service'):
subprocess.call(['/sbin/service', 'httpd', 'restart'])
elif os.path.isfile('/usr/sbin/service'):
@@ -119,7 +119,7 @@ def execute(*args, **kw):
log.error(_("Could not start the webserver server service."))
if os.path.isfile('/bin/systemctl'):
- subprocess.call(['/bin/systemctl', 'enable', 'httpd.target'])
+ subprocess.call(['/bin/systemctl', 'enable', 'httpd.service'])
elif os.path.isfile('/sbin/chkconfig'):
subprocess.call(['/sbin/chkconfig', 'httpd', 'on'])
elif os.path.isfile('/usr/sbin/update-rc.d'):
diff --git a/pykolab/setup/setup_mysql.py b/pykolab/setup/setup_mysql.py
index 9a046b2..df9b1ac 100644
--- a/pykolab/setup/setup_mysql.py
+++ b/pykolab/setup/setup_mysql.py
@@ -40,7 +40,7 @@ def description():
def execute(*args, **kw):
if os.path.isfile('/bin/systemctl'):
- subprocess.call(['/bin/systemctl', 'restart', 'mysqld.target'])
+ subprocess.call(['/bin/systemctl', 'restart', 'mysqld.service'])
elif os.path.isfile('/sbin/service'):
subprocess.call(['/sbin/service', 'mysqld', 'restart'])
elif os.path.isfile('/usr/sbin/service'):
@@ -49,7 +49,7 @@ def execute(*args, **kw):
log.error(_("Could not start the MySQL database service."))
if os.path.isfile('/bin/systemctl'):
- subprocess.call(['/bin/systemctl', 'enable', 'mysqld.target'])
+ subprocess.call(['/bin/systemctl', 'enable', 'mysqld.service'])
elif os.path.isfile('/sbin/chkconfig'):
subprocess.call(['/sbin/chkconfig', 'mysqld', 'on'])
elif os.path.isfile('/usr/sbin/update-rc.d'):
diff --git a/pykolab/setup/setup_roundcube.py b/pykolab/setup/setup_roundcube.py
index 6b2c464..4a5b394 100644
--- a/pykolab/setup/setup_roundcube.py
+++ b/pykolab/setup/setup_roundcube.py
@@ -181,7 +181,7 @@ def execute(*args, **kw):
time.sleep(2)
if os.path.isfile('/bin/systemctl'):
- subprocess.call(['/bin/systemctl', 'restart', 'httpd.target'])
+ subprocess.call(['/bin/systemctl', 'restart', 'httpd.service'])
elif os.path.isfile('/sbin/service'):
subprocess.call(['/sbin/service', 'httpd', 'restart'])
elif os.path.isfile('/usr/sbin/service'):
@@ -190,7 +190,7 @@ def execute(*args, **kw):
log.error(_("Could not start the webserver server service."))
if os.path.isfile('/bin/systemctl'):
- subprocess.call(['/bin/systemctl', 'enable', 'httpd.target'])
+ subprocess.call(['/bin/systemctl', 'enable', 'httpd.service'])
elif os.path.isfile('/sbin/chkconfig'):
subprocess.call(['/sbin/chkconfig', 'httpd', 'on'])
elif os.path.isfile('/usr/sbin/update-rc.d'):
diff --git a/pykolab/setup/setup_syncroton.py b/pykolab/setup/setup_syncroton.py
index 676d9bc..46d5190 100644
--- a/pykolab/setup/setup_syncroton.py
+++ b/pykolab/setup/setup_syncroton.py
@@ -57,7 +57,7 @@ def execute(*args, **kw):
time.sleep(2)
if os.path.isfile('/bin/systemctl'):
- subprocess.call(['/bin/systemctl', 'restart', 'httpd.target'])
+ subprocess.call(['/bin/systemctl', 'restart', 'httpd.service'])
elif os.path.isfile('/sbin/service'):
subprocess.call(['/sbin/service', 'httpd', 'restart'])
elif os.path.isfile('/usr/sbin/service'):
@@ -66,7 +66,7 @@ def execute(*args, **kw):
log.error(_("Could not start the webserver server service."))
if os.path.isfile('/bin/systemctl'):
- subprocess.call(['/bin/systemctl', 'enable', 'httpd.target'])
+ subprocess.call(['/bin/systemctl', 'enable', 'httpd.service'])
elif os.path.isfile('/sbin/chkconfig'):
subprocess.call(['/sbin/chkconfig', 'httpd', 'on'])
elif os.path.isfile('/usr/sbin/update-rc.d'):
diff --git a/pykolab/setup/setup_zpush.py b/pykolab/setup/setup_zpush.py
index c236f7b..b1ba921 100644
--- a/pykolab/setup/setup_zpush.py
+++ b/pykolab/setup/setup_zpush.py
@@ -89,7 +89,7 @@ def execute(*args, **kw):
time.sleep(2)
if os.path.isfile('/bin/systemctl'):
- subprocess.call(['/bin/systemctl', 'restart', 'httpd.target'])
+ subprocess.call(['/bin/systemctl', 'restart', 'httpd.service'])
elif os.path.isfile('/sbin/service'):
subprocess.call(['/sbin/service', 'httpd', 'restart'])
elif os.path.isfile('/usr/sbin/service'):
@@ -98,7 +98,7 @@ def execute(*args, **kw):
log.error(_("Could not start the webserver server service."))
if os.path.isfile('/bin/systemctl'):
- subprocess.call(['/bin/systemctl', 'enable', 'httpd.target'])
+ subprocess.call(['/bin/systemctl', 'enable', 'httpd.service'])
elif os.path.isfile('/sbin/chkconfig'):
subprocess.call(['/sbin/chkconfig', 'httpd', 'on'])
elif os.path.isfile('/usr/sbin/update-rc.d'):
--
1.7.10.4
More information about the devel
mailing list