• Debian 11 is approaching its end-of-life (vendor EOL date - August 31, 2026). Plesk Obsidian 18.0.80 will be the last release to support it.
    If you are running Plesk Obsidian on Debian 11, we recommend you upgrade those servers to Debian 12 using our dist-upgrade tool.
  • We plan to deprecate and remove the support for XML RPC protocol versions earlier than 1.6.9.1 in Plesk Obsidian 18.0.82. We strongly recommend that you update all existing integrations using earlier versions of the XML RPC protocol to comply with the version 1.6.9.1 specification.

Resolved How to keep mysql down

Zalem Citizen

New Pleskian
Hello,

Plesk Onyx on Ubuntu 16.04 VPS
In order to copy data to a bigger additional disk I need to stop mysql for the duration of my copy job.
When stopped with
Code:
service mysql stop
or
Code:
systemctl stop mysql.service

Plesk keeps restarting the service within 5 minutes. Syslog :

Code:
Feb  3 13:00:59 klabs-test monit[2739]: 'mysql' process is not running
Feb  3 13:00:59 klabs-test monit[2739]: Collector: cannot open a connection to http://127.0.0.1:2912/ -- Transport endpoint is not connected
Feb  3 13:00:59 klabs-test monit[2739]: Collector: no server available -- aborting message
Feb  3 13:00:59 klabs-test monit[2739]: 'mysql' trying to restart
Feb  3 13:00:59 klabs-test monit[2739]: 'mysql' start: /opt/psa/admin/sbin/pleskrc
Feb  3 13:00:59 klabs-test monit[2739]: Collector: cannot open a connection to http://127.0.0.1:2912/ -- Transport endpoint is not connected
Feb  3 13:00:59 klabs-test monit[2739]: Collector: no server available -- aborting message
Feb  3 13:01:00 klabs-test systemd[1]: Starting MySQL Community Server...

Is there a proper way to disable this autostart ?

Thanks
 
"monit" is an Ubuntu server service, not a Plesk utility. You will need to disable the service via monit, like
# monit stop mysqld
(or mysql, mariadb or whatever your MySQL daemon is called).
 
Thanks for your help.

You're right, my bad. Strange thing is that monit package seems not installed.
I keep looking
 
Got it ...
Brought by watchdog extension and located in /opt/psa/admin/bin/modules/watchdog/monit and configured by /opt/psa/modules/watchdog/monitrc

Thanks, you helped !
 
And indeed :

Monitoring System Services

Now the services will be monitored in accordance with the settings you specified. If you decided to use the default settings, the following actions will be taken:

  • All services will be automatically restarted in case of failure.

The weird thing is I didn't enabled any service monitoring and it still restarts them
 
Back
Top