Skip to content
Snippets Groups Projects
Commit 8116354d authored by Otto Kekäläinen's avatar Otto Kekäläinen
Browse files

Make error more helpful in case server restart fails (Related: #1033234)

Bugs such as
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1033234
and
https://bugs.launchpad.net/ubuntu/+source/mariadb-10.6/+bug/2011293
show that currently dpkg stopping on service stop/start does not
have a very helpful error message.
parent 38198d0b
No related branches found
No related tags found
No related merge requests found
......@@ -35,7 +35,8 @@ stop_server() {
if [ "$errno" != 0 -a "$errno" != 100 ]; then
echo "Attempt to stop MariaDB/MySQL server returned exitcode $errno" 1>&2
echo "There is a MariaDB/MySQL server running, but we failed in our attempts to stop it." 1>&2
echo "Stop it yourself and try again!" 1>&2
echo "Check if there is any server running with 'pgrep \"mysqld|mariadbd\"' and" 1>&2
echo "try to stop it yourself by issuing 'invoke-rc.d mariadb stop'." 1>&2
db_stop
exit 1
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment