1.) mysqld starts automatically
Why does mysql start automatically after it is loaded? This happens while booting but before mydata.tgz is restored. This daemon is not useful in this form.
Okay, I can fix this in the bootlocal
mysqladmin --user=root shutdown
sudo /usr/local/bin/mysqld_multi start 1
but I wonder if I did not understand the trick? Presumably, it only makes sense if one has made /usr/local/var/mysql/ persistent.
2.) backup/shutdown strategy
I wonder how I can shut down the computer safely and without data loss in processes such as mysql, apache ...
An entry in the file /opt/bootlocal.sh like :
apachectl -k stop
mysqladmin --user=root --password=PASSWORD shutdown
does not make sense, since it is performed only after the backup.
Is there a script that runs before the backup and where can I stop processes like apache, mysql ... and sync the filesystem?
Tao