Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    93
    Likes Received:
    14
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,367
    Likes Received:
    1,857
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice