Я создал и переопределил для mariadb
[root@ip-10-0-0-50 mysqld.service.d]# cat /etc/systemd/system/mysqld.service.d/override.conf
[Service]
LimitNOFILE=65535
[root@ip-10-0-0-50 mysqld.service.d]#
Затем я делаю
systemctl daemon-reload
чтобы перезагрузить конфиги, а systemctl все еще жалуется, что я не перезагружал.
[root@ip-10-0-0-50 mysqld.service.d]# systemctl restart mysqld
Warning: mysqld.service changed on disk. Run 'systemctl daemon-reload' to reload units.
[root@ip-10-0-0-50 mysqld.service.d]# systemctl daemon-reload
[root@ip-10-0-0-50 mysqld.service.d]# systemctl restart mysqld
Warning: mysqld.service changed on disk. Run 'systemctl daemon-reload' to reload units.
[root@ip-10-0-0-50 mysqld.service.d]#
journalctl нам не показывает ошибок
[root@ip-10-0-0-50 mysqld.service.d]# journalctl | tail -n 25
Apr 02 21:08:59 ip-10-0-0-50.ec2.internal sshd[2361]: Invalid user yazaki from 190.12.1.242 port 45703
Apr 02 21:08:59 ip-10-0-0-50.ec2.internal sshd[2361]: input_userauth_request: invalid user yazaki [preauth]
Apr 02 21:08:59 ip-10-0-0-50.ec2.internal sshd[2361]: Received disconnect from 190.12.1.242 port 45703:11: Bye Bye [preauth]
Apr 02 21:08:59 ip-10-0-0-50.ec2.internal sshd[2361]: Disconnected from 190.12.1.242 port 45703 [preauth]
Apr 02 21:09:30 ip-10-0-0-50.ec2.internal polkitd[573]: Registered Authentication Agent for unix-process:2363:104817 (system bus name :1.41 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Apr 02 21:09:30 ip-10-0-0-50.ec2.internal systemd[1]: Stopping MariaDB 10.4.12 database server...
Apr 02 21:09:32 ip-10-0-0-50.ec2.internal systemd[1]: Stopped MariaDB 10.4.12 database server.
Apr 02 21:09:32 ip-10-0-0-50.ec2.internal systemd[1]: Starting MariaDB 10.4.12 database server...
Apr 02 21:09:32 ip-10-0-0-50.ec2.internal mysqld[2406]: 2020-04-02 21:09:32 0 [Warning] 'master-info-repository' is MySQL 5.6 / 5.7 compatible option. Not used or needed in MariaDB.
Apr 02 21:09:32 ip-10-0-0-50.ec2.internal mysqld[2406]: 2020-04-02 21:09:32 0 [Warning] 'relay-log-info-repository' is MySQL 5.6 / 5.7 compatible option. Not used or needed in MariaDB.
Apr 02 21:09:32 ip-10-0-0-50.ec2.internal mysqld[2406]: 2020-04-02 21:09:32 0 [Note] /usr/sbin/mysqld (mysqld 10.4.12-MariaDB-log) starting as process 2406 ...
Apr 02 21:09:32 ip-10-0-0-50.ec2.internal systemd[1]: Started MariaDB 10.4.12 database server.
Apr 02 21:09:32 ip-10-0-0-50.ec2.internal polkitd[573]: Unregistered Authentication Agent for unix-process:2363:104817 (system bus name :1.41, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Apr 02 21:09:38 ip-10-0-0-50.ec2.internal polkitd[573]: Registered Authentication Agent for unix-process:2441:105592 (system bus name :1.42 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Apr 02 21:09:38 ip-10-0-0-50.ec2.internal systemd[1]: Reloading.
Apr 02 21:09:38 ip-10-0-0-50.ec2.internal polkitd[573]: Unregistered Authentication Agent for unix-process:2441:105592 (system bus name :1.42, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
Apr 02 21:09:42 ip-10-0-0-50.ec2.internal polkitd[573]: Registered Authentication Agent for unix-process:2460:105962 (system bus name :1.43 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Apr 02 21:09:42 ip-10-0-0-50.ec2.internal systemd[1]: Stopping MariaDB 10.4.12 database server...
Apr 02 21:09:43 ip-10-0-0-50.ec2.internal systemd[1]: Stopped MariaDB 10.4.12 database server.
Apr 02 21:09:43 ip-10-0-0-50.ec2.internal systemd[1]: Starting MariaDB 10.4.12 database server...
Apr 02 21:09:44 ip-10-0-0-50.ec2.internal mysqld[2503]: 2020-04-02 21:09:44 0 [Warning] 'master-info-repository' is MySQL 5.6 / 5.7 compatible option. Not used or needed in MariaDB.
Apr 02 21:09:44 ip-10-0-0-50.ec2.internal mysqld[2503]: 2020-04-02 21:09:44 0 [Warning] 'relay-log-info-repository' is MySQL 5.6 / 5.7 compatible option. Not used or needed in MariaDB.
Apr 02 21:09:44 ip-10-0-0-50.ec2.internal mysqld[2503]: 2020-04-02 21:09:44 0 [Note] /usr/sbin/mysqld (mysqld 10.4.12-MariaDB-log) starting as process 2503 ...
Apr 02 21:09:44 ip-10-0-0-50.ec2.internal systemd[1]: Started MariaDB 10.4.12 database server.
Apr 02 21:09:44 ip-10-0-0-50.ec2.internal polkitd[573]: Unregistered Authentication Agent for unix-process:2460:105962 (system bus name :1.43, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (disconnected from bus)
[root@ip-10-0-0-50 mysqld.service.d]#