mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
mariadb: update /var/run to /run
The following warning has been occuring with mariadb, update the references to use the non legacy directory - /run systemd[1]: /storage/.config/system.d/service.mariadb.service:8: PIDFile= references a path below legacy directory /var/run/, updating /var/run/mysqld/mysqld.pid → /run/mysqld/mysqld.pid; please update the unit file accordingly.
This commit is contained in:
parent
eba11fc54f
commit
0381a38363
@ -7,7 +7,7 @@
|
|||||||
oe_setup_addon service.mariadb
|
oe_setup_addon service.mariadb
|
||||||
|
|
||||||
# create dir for socket and pid
|
# create dir for socket and pid
|
||||||
mkdir -p /var/run/mysqld
|
mkdir -p /run/mysqld
|
||||||
|
|
||||||
# exit if already running
|
# exit if already running
|
||||||
PID=$(ps aux | awk '/\/bin\/mariadbd/ {print $1; exit 0}')
|
PID=$(ps aux | awk '/\/bin\/mariadbd/ {print $1; exit 0}')
|
||||||
|
@ -3,4 +3,4 @@
|
|||||||
# SPDX-License-Identifier: GPL-2.0
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
# Copyright (C) 2018-present Team LibreELEC (https://libreelec.tv)
|
||||||
|
|
||||||
kill $(cat /var/run/mysqld/mysqld.pid)
|
kill $(cat /run/mysqld/mysqld.pid)
|
||||||
|
@ -17,14 +17,14 @@
|
|||||||
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
|
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
|
||||||
[client]
|
[client]
|
||||||
port = 3306
|
port = 3306
|
||||||
socket = /var/run/mysqld/mysqld.sock
|
socket = /run/mysqld/mysqld.sock
|
||||||
|
|
||||||
# Here is entries for some specific programs
|
# Here is entries for some specific programs
|
||||||
# The following values assume you have at least 32M ram
|
# The following values assume you have at least 32M ram
|
||||||
|
|
||||||
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
|
# This was formally known as [safe_mysqld]. Both versions are currently parsed.
|
||||||
[mysqld_safe]
|
[mysqld_safe]
|
||||||
socket = /var/run/mysqld/mysqld.sock
|
socket = /run/mysqld/mysqld.sock
|
||||||
nice = 0
|
nice = 0
|
||||||
|
|
||||||
[mysqld]
|
[mysqld]
|
||||||
@ -32,8 +32,8 @@ nice = 0
|
|||||||
# * Basic Settings
|
# * Basic Settings
|
||||||
#
|
#
|
||||||
user = root
|
user = root
|
||||||
pid-file = /var/run/mysqld/mysqld.pid
|
pid-file = /run/mysqld/mysqld.pid
|
||||||
socket = /var/run/mysqld/mysqld.sock
|
socket = /run/mysqld/mysqld.sock
|
||||||
port = 3306
|
port = 3306
|
||||||
basedir = /storage/.kodi/addons/service.mariadb
|
basedir = /storage/.kodi/addons/service.mariadb
|
||||||
datadir = /storage/.kodi/userdata/addon_data/service.mariadb/data
|
datadir = /storage/.kodi/userdata/addon_data/service.mariadb/data
|
||||||
|
@ -5,7 +5,7 @@ Before=kodi.service
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
PIDFile=/var/run/mysqld/mysqld.pid
|
PIDFile=/run/mysqld/mysqld.pid
|
||||||
ExecStart=/bin/sh -c "exec sh /storage/.kodi/addons/service.mariadb/bin/mariadb.start"
|
ExecStart=/bin/sh -c "exec sh /storage/.kodi/addons/service.mariadb/bin/mariadb.start"
|
||||||
ExecStop=/bin/sh -c "exec sh /storage/.kodi/addons/service.mariadb/bin/mariadb.stop"
|
ExecStop=/bin/sh -c "exec sh /storage/.kodi/addons/service.mariadb/bin/mariadb.stop"
|
||||||
TimeoutStartSec=60
|
TimeoutStartSec=60
|
||||||
|
Loading…
x
Reference in New Issue
Block a user