Hi,
there are some issues with the init script:
1. "mysql" should be there without '$' otherwise the init script will not be sorted into call sequence after MYSQLs init script.
2. At least on Debian/GNU Linux systems the runlevel "2" is default one, so the script should be started in this level also.
3. "killall" should be called with program name only without path. (It failed on my system.)
4. One issue remains:
It is seemless to evaluate "$?" after starting a process in background. You will not be aware if it failed. Either you get the PID with "$!" and look into process table if it is still there after start or you use (distribution specific) start-stop-programs (like start-stop-daemon in Debian/GNU Linux init.d scripts). Perhars there is also a generic one?
Please find attached patch for 1. - 3.
Bye,
Erik
Some imrovements
After googleing a bit i found:
http://refspecs.freestandards.org/LSB_3.1.1/LSB-Core-generic/LSB-Core-generic/iniscrptfunc.html
There is a common way for all LSB conform distributions.
I will write a patch.
Bye,
Erik