mirror of
https://github.com/LibreELEC/LibreELEC.tv
synced 2025-09-24 19:46:01 +07: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:
@@ -7,7 +7,7 @@
|
||||
oe_setup_addon service.mariadb
|
||||
|
||||
# create dir for socket and pid
|
||||
mkdir -p /var/run/mysqld
|
||||
mkdir -p /run/mysqld
|
||||
|
||||
# exit if already running
|
||||
PID=$(ps aux | awk '/\/bin\/mariadbd/ {print $1; exit 0}')
|
||||
|
||||
Reference in New Issue
Block a user