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:
Rudi Heitbaum
2022-11-01 03:40:55 +00:00
parent eba11fc54f
commit 0381a38363
4 changed files with 7 additions and 7 deletions

View File

@@ -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}')