The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

restartsrv mysql doing things it should not

Discussion in 'cPanel Developers' started by Anoop P Alias, May 20, 2017.

  1. Anoop P Alias

    Anoop P Alias Well-Known Member

    Joined:
    Mar 31, 2015
    Messages:
    65
    Likes Received:
    6
    Trophy Points:
    8
    Location:
    Kochi,Kerala,India
    cPanel Access Level:
    Root Administrator
    I am opening this post to report a bug in restartsrv_mysql . The script find out the actual location of mysql socket file and automatically symlink /var/lib/mysql/mysql.sock to the actual mysql socket.

    The problem with this is ,I have integrated the Maxscale proxy router to listen on /var/lib/mysql/mysql.sock for a High available mysql service and whenever restartsrv mysql is called , it will delete the mysql.sock and symlink it to original mysql socket which is unwanted in my case .

    So please open an internal case and modify the restartsrv_mysql script behavior such that the script ignores the socket if it is symlinked to another socket or in short if symlink target exists.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,980
    Likes Received:
    1,275
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You can submit a bug report using the following URL so we can take a closer look:

    Submit A Bug Report

    Thank you.
     
Loading...

Share This Page