[PATCH 15/16] (Fix) debianization - 'mysqld' service is called 'mysql' in debian;
Johannes Graumann
johannes_graumann at web.de
Tue Oct 2 14:37:51 CEST 2012
---
pykolab/setup/setup_mysql.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/pykolab/setup/setup_mysql.py b/pykolab/setup/setup_mysql.py
index df9b1ac..e4940a0 100644
--- a/pykolab/setup/setup_mysql.py
+++ b/pykolab/setup/setup_mysql.py
@@ -44,7 +44,7 @@ def execute(*args, **kw):
elif os.path.isfile('/sbin/service'):
subprocess.call(['/sbin/service', 'mysqld', 'restart'])
elif os.path.isfile('/usr/sbin/service'):
- subprocess.call(['/usr/sbin/service','mysqld','restart'])
+ subprocess.call(['/usr/sbin/service','mysql','restart'])
else:
log.error(_("Could not start the MySQL database service."))
@@ -53,7 +53,7 @@ def execute(*args, **kw):
elif os.path.isfile('/sbin/chkconfig'):
subprocess.call(['/sbin/chkconfig', 'mysqld', 'on'])
elif os.path.isfile('/usr/sbin/update-rc.d'):
- subprocess.call(['/usr/sbin/update-rc.d', 'mysqld', 'defaults'])
+ subprocess.call(['/usr/sbin/update-rc.d', 'mysql', 'defaults'])
else:
log.error(_("Could not configure to start on boot, the " + \
"MySQL database service."))
--
1.7.10.4
More information about the devel
mailing list