summaryrefslogtreecommitdiffstats
path: root/pykolab/setup
diff options
context:
space:
mode:
Diffstat (limited to 'pykolab/setup')
-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])