Permanently modify /etc/systemd/system/mysql.service
Hello
I need to permanently modify /etc/systemd/system/mysql.service, more precisely the settings ProtectSystem = false and ProtectHome = false
I changed this file and executed systemctl daemon-reload
But I missed the changes tonight, I believe it's due to an update. How do I make these changes permanent?
-
Hello, You should be able to add a separate configuration file. EX: touch /etc/systemd/system/mysqld.service.d/protect.conf chmod 0600 /etc/systemd/system/mysqld.service.d/protect.conf
# cat /etc/systemd/system/mysqld.service.d/protect.conf [Service] ProtectHome=false ProtectSystem=false
Let us know if that helps. Thank you.0 -
Thanks, it should help! 0 -
It only worked after put this file on /etc/systemd/system/mariadb.service.d 0 -
It only worked after put this file on /etc/systemd/system/mariadb.service.d
Are you using MySQL or MariaDB on this system? Thank you.0 -
MariaDB. Sorry, I forgot to report it. 0 -
Hello, Yes, if you are using MariaDB, then /etc/systemd/system/mariadb.service.d/ is the correct location to add the include file. Thank you. 0
Please sign in to leave a comment.
Comments
6 comments