summaryrefslogtreecommitdiffstats
path: root/pykolab
diff options
context:
space:
mode:
authorTimotheus Pokorra <tp@tbits.net>2015-08-24 11:21:07 +0200
committerTimotheus Pokorra <tp@tbits.net>2015-08-24 11:21:07 +0200
commit12a1380f6fdf95db6ce488ea6e052b93ba547ed8 (patch)
treec7695e7f3088f0f444eb84d7d2ebcac0675ad059 /pykolab
parent0da5b83cb942ffd4469545db91c3cc8f115b6c66 (diff)
downloadpykolab-12a1380f6fdf95db6ce488ea6e052b93ba547ed8.tar.gz
Debian Jessie: setup kolab: mysql service is called mysql, not mysqld.service (#5161)
Diffstat (limited to 'pykolab')
-rw-r--r--pykolab/setup/setup_mysql.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/pykolab/setup/setup_mysql.py b/pykolab/setup/setup_mysql.py
index c262803..8c38111 100644
--- a/pykolab/setup/setup_mysql.py
+++ b/pykolab/setup/setup_mysql.py
@@ -62,6 +62,9 @@ def execute(*args, **kw):
mysqlservice = 'mysqld.service'
if os.path.isfile('/usr/lib/systemd/system/mariadb.service'):
mysqlservice = 'mariadb.service'
+ if os.path.isfile('/bin/systemctl') and not os.path.isfile('/usr/lib/systemd/system/' + mysqlservice):
+ # on Debian Jessie, systemctl restart mysql
+ mysqlservice = 'mysql'
if os.path.isfile('/bin/systemctl'):
subprocess.call(['/bin/systemctl', 'restart', mysqlservice])