• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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