Nicosss wrote:@kinesra
Que retourne avant, pendant, après
$ systemctl status mariadb
Avant :
Failed to start Mariadb
systemctl status mariadb
● mariadb.service - MariaDB 10.0 database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since jeu. 2016-05-26 08:20:15 CEST; 52min ago
Process: 1458 ExecStopPost=/usr/libexec/mysql-wait-stop (code=exited, status=0/SUCCESS)
Process: 997 ExecStartPost=/usr/libexec/mysql-wait-ready $MAINPID (code=exited, status=1/FAILURE)
Process: 996 ExecStart=/usr/bin/mysqld_safe --basedir=/usr (code=exited, status=0/SUCCESS)
Process: 961 ExecStartPre=/usr/libexec/mysql-prepare-db-dir %n (code=exited, status=0/SUCCESS)
Process: 929 ExecStartPre=/usr/libexec/mysql-check-socket (code=exited, status=0/SUCCESS)
Main PID: 996 (code=exited, status=0/SUCCESS)
mai 26 08:20:12 calypsum.com systemd[1]: Starting MariaDB 10.0 database serv....
mai 26 08:20:12 calypsum.com mysqld_safe[996]: 160526 08:20:12 mysqld_safe L....
mai 26 08:20:12 calypsum.com mysqld_safe[996]: 160526 08:20:12 mysqld_safe S...l
mai 26 08:20:15 calypsum.com systemd[1]: mariadb.service: control process ex...1
mai 26 08:20:15 calypsum.com systemd[1]: Failed to start MariaDB 10.0 databa....
mai 26 08:20:15 calypsum.com systemd[1]: Unit mariadb.service entered failed....
mai 26 08:20:15 calypsum.com systemd[1]: mariadb.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
Pendant : rien !
[root@calypsum ~]# systemctl enable mariadb
[root@calypsum ~]#
Après
systemctl enable mariadb :
Failed to start (ça me semble normal)
[root@calypsum ~]# systemctl status mariadb
● mariadb.service - MariaDB 10.0 database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since jeu. 2016-05-26 08:20:15 CEST; 56min ago
Main PID: 996 (code=exited, status=0/SUCCESS)
mai 26 08:20:12 calypsum.com systemd[1]: Starting MariaDB 10.0 database server...
mai 26 08:20:12 calypsum.com mysqld_safe[996]: 160526 08:20:12 mysqld_safe Logging to '/var/lo...g'.
mai 26 08:20:12 calypsum.com mysqld_safe[996]: 160526 08:20:12 mysqld_safe Starting mysqld dae...sql
mai 26 08:20:15 calypsum.com systemd[1]: mariadb.service: control process exited, code=exited ...s=1
mai 26 08:20:15 calypsum.com systemd[1]: Failed to start MariaDB 10.0 database server.
mai 26 08:20:15 calypsum.com systemd[1]: Unit mariadb.service entered failed state.
mai 26 08:20:15 calypsum.com systemd[1]: mariadb.service failed.
Hint: Some lines were ellipsized, use -l to show in full.
Après
systemctl start mariadb, tout va bien :
[root@calypsum ~]# systemctl start mariadb
[root@calypsum ~]# systemctl status mariadb
● mariadb.service - MariaDB 10.0 database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor preset: disabled)
Active: active (running) since jeu. 2016-05-26 09:17:32 CEST; 7s ago
Process: 2944 ExecStartPost=/usr/libexec/mysql-check-upgrade (code=exited, status=0/SUCCESS)
Process: 2800 ExecStartPost=/usr/libexec/mysql-wait-ready $MAINPID (code=exited, status=0/SUCCESS)
Process: 2763 ExecStartPre=/usr/libexec/mysql-prepare-db-dir %n (code=exited, status=0/SUCCESS)
Process: 2712 ExecStartPre=/usr/libexec/mysql-check-socket (code=exited, status=0/SUCCESS)
Main PID: 2799 (mysqld_safe)
CGroup: /system.slice/mariadb.service
├─2799 /bin/sh /usr/bin/mysqld_safe --basedir=/usr
└─2914 /usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/l...
mai 26 09:17:30 calypsum.com systemd[1]: Starting MariaDB 10.0 database server...
mai 26 09:17:30 calypsum.com mysqld_safe[2799]: 160526 09:17:30 mysqld_safe Logging to '/var/l...g'.
mai 26 09:17:30 calypsum.com mysqld_safe[2799]: 160526 09:17:30 mysqld_safe Starting mysqld da...sql
mai 26 09:17:32 calypsum.com systemd[1]: Started MariaDB 10.0 database server.
Hint: Some lines were ellipsized, use -l to show in full.
Donc,
systemctl enable mariadb ne créé pas ce fameux 'lien symbolique' ...
Alors docteur ?