From 3cc8f52bc8ef168c9b38c9e25cf1f789015b7b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lebleu?= Date: Thu, 12 May 2016 23:57:48 +0200 Subject: [PATCH] [fix] Use ps to check if MySQL is running in conf_regen hook (fix #232) --- data/hooks/conf_regen/34-mysql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/hooks/conf_regen/34-mysql b/data/hooks/conf_regen/34-mysql index 84f473d04..5a22588d9 100755 --- a/data/hooks/conf_regen/34-mysql +++ b/data/hooks/conf_regen/34-mysql @@ -17,7 +17,7 @@ do_post_regen() { . /usr/share/yunohost/helpers.d/string # ensure that mysql is running - service mysql status >/dev/null 2>&1 \ + ps -C mysqld >/dev/null 2>&1 \ || service mysql start # generate and set new root password