> On Jul 26, 2017, at 20:51, 沧海云帆 <[email protected]> wrote:
>
> Hello Louis,
> I have change /var/lib/mysql to /var/lib/mysql-bak,when I run systemctl
> status mariadb and journalctl -xe, it show as below:
> [root@localhost pf]# systemctl start mariadb
> Job for mariadb.service failed because the control process exited with error
> code. See "systemctl status mariadb.service" and "journalctl -xe" for details.
> [root@localhost pf]# systemctl status mariadb
> ● mariadb.service - MariaDB database server
> Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; vendor
> preset: disabled)
> Drop-In: /etc/systemd/system/mariadb.service.d
> └─migrated-from-my.cnf-settings.conf
> Active: failed (Result: exit-code) since Thu 2017-07-27 08:52:58 CST; 3s
> ago
> Process: 20457 ExecStart=/usr/sbin/mysqld $MYSQLD_OPTS $_WSREP_NEW_CLUSTER
> $_WSREP_START_POSITION (code=exited, status=1/FAILURE)
> Process: 20445 ExecStartPre=/bin/sh -c [ ! -e /usr/bin/galera_recovery ] &&
> VAR= || VAR=`/usr/bin/galera_recovery`; [ $? -eq 0 ] && systemctl
> set-environment _WSREP_START_POSITION=$VAR || exit 1 (code=exited,
> status=0/SUCCESS)
> Process: 20443 ExecStartPre=/bin/sh -c systemctl unset-environment
> _WSREP_START_POSITION (code=exited, status=0/SUCCESS)
> Main PID: 20457 (code=exited, status=1/FAILURE)
> Status: "MariaDB server is down"
That's because the actual service is "packetfence-mariadb".
Try
#systemctl status packetfence-mariadb
and then perhaps
# systemctl start packetfence-mariadb
--
Louis Munro
[email protected] <mailto:[email protected]> :: www.inverse.ca
<http://www.inverse.ca/>
+1.514.447.4918 x125 :: +1 (866) 353-6153 x125
Inverse inc. :: Leaders behind SOGo (www.sogo.nu <http://www.sogo.nu/>) and
PacketFence (www.packetfence.org <http://www.packetfence.org/>)
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users