Skip to main content

Permanently modify /etc/systemd/system/mysql.service

Comments

6 comments

  • cPanelMichael
    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
  • gersonfs
    Thanks, it should help!
    0
  • gersonfs
    It only worked after put this file on /etc/systemd/system/mariadb.service.d
    0
  • cPanelMichael
    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
  • gersonfs
    MariaDB. Sorry, I forgot to report it.
    0
  • cPanelMichael
    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.