Yes it work and yes I need to create special folder. In user script, I execute:
ln -s /mnt/sda2/<PATH>/srv/ /srv;
And about this, I thought that the racine (/) was in flash memory, but when I create a directory in the racine it stay after reboot, why?
I think it is the problem, the "sh /ffp/startmysqld start" command 'never' return. I don't know how to explain that but I will try:
$ sudo /ffp/start/mysqld.sh start
$ 141014 22:36:23 mysqld_safe Logging to '/srv/mysql/NYX.err'.
141014 22:36:23 mysqld_safe Starting mysqld daemon with databases from /srv/mysql
As you see, after command start, there are some junk in console about mysqld and it is this that "freeze" ALT-F after reboot.
As I say above, the problem is mysqld.sh. I have modified this file like this:
mysqld_start()
{
/ffp/bin/mysqld_safe $mysqld_flags </dev/null &
}
To
mysqld_start()
{
/ffp/bin/mysqld_safe $mysqld_flags < /dev/null >& /dev/null &
}
And there no freeze after reboot. When I put:
sh /ffp/start/mysqld.sh start;
In user script, everything works good. But when I use ffp-->mysqld check enable (the service start normaly if isn't started and stop normaly if I uncheck), after reboot, the service won't start and it's status say " stopped".
The log of mysqld:
141013 21:41:44 [Note] /ffp/libexec/mysqld: Normal shutdown
141013 21:41:44 [Note] Event Scheduler: Purging the queue. 0 events
141013 21:41:44 [Note] /ffp/libexec/mysqld: Shutdown complete
141013 21:41:44 mysqld_safe mysqld from pid file /srv/mysql/DLINK.pid ended
For a mysterious reason, the service start and stop immediatly (I presume) (but I don't have log that the service had start, it's weird)
Something else that's weird:
$ sudo /ffp/start/mysqld.sh start
$ sudo /ffp/start/mysqld.sh status
mysqld not running
$ sudo /ffp/start/mysqld.sh restart
WARNING: mysqld: Not running
$ 141014 23:02:50 mysqld_safe Logging to '/srv/mysql/DLINK.err'.
141014 23:02:50 mysqld_safe A mysqld process already exists
$ sudo /ffp/start/mysqld.sh stop
WARNING: mysqld: Not running
But with ALT-F webui, if I uncheck, the service stop propely with no error
ps aux:
2455 root {mysqld_safe} /bin/sh /ffp/bin/mysqld_safe --user=root
2545 root /ffp/libexec/mysqld --basedir=/ffp --datadir=/srv/mysql --user=root --log-error=/srv/mysql/DLINK.err --pid-file=/srv/mysql/DLINK.pid --socket=/ffp/var/run/mysql/mysql.sock --port=3306
2546 root /ffp/libexec/mysqld --basedir=/ffp --datadir=/srv/mysql --user=root --log-error=/srv/mysql/DLINK.err --pid-file=/srv/mysql/DLINK.pid --socket=/ffp/var/run/mysql/mysql.sock --port=3306
2547 root /ffp/libexec/mysqld --basedir=/ffp --datadir=/srv/mysql --user=root --log-error=/srv/mysql/DLINK.err --pid-file=/srv/mysql/DLINK.pid --socket=/ffp/var/run/mysql/mysql.sock --port=3306
Did you know why mysqld_safe is in {} ?
Finaly, with " >/dev/null " added in mysqld.sh and "sh /ffp/start/mysqld.sh start" in user script, all seem to work good