tmpfiles.d(5)
This commit is contained in:
parent
8b7da00b3b
commit
96177d046f
|
@ -1325,9 +1325,14 @@ skip-slave-start
|
|||
Créer le répertoire qui contiendra le socket et le fichier PID :
|
||||
|
||||
~~~
|
||||
# mkdir /var/run/mysqld-foo
|
||||
# chown mysql-foo:root /var/run/mysqld-foo
|
||||
# chmod 755 /var/run/mysqld-foo
|
||||
# install -d /var/run/mysqld-foo -o mysql-foo -g root -m 755
|
||||
~~~
|
||||
|
||||
Faire de même avec tmpfiles.d(5), pour créer ce dossier au démarrage de la machine :
|
||||
|
||||
~~~
|
||||
# cat /etc/tmpfiles.d/mysql-instance.conf
|
||||
d /var/run/mysqld-foo 0755 mysqld-foo root - -
|
||||
~~~
|
||||
|
||||
Puis lancer la nouvelle instance :
|
||||
|
|
Loading…
Reference in a new issue