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!

Stopping Restarting of Outdated Services

Discussion in 'General Discussion' started by BillyS, Sep 14, 2018.

  1. BillyS

    BillyS Well-Known Member

    Joined:
    Mar 22, 2013
    Messages:
    49
    Likes Received:
    2
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    I have a problem during updates... I'm running on Google Cloud and their network services require certain configurations that no one's been able to help me solve in an automatic fashion. What happens is CPanel runs, it downloads a new network update from Google, restarts the service and one of the two network connections fail. I have to manually provide a command to get it started again. (If you have a suggestion, great but I have asked in many forums and done a lot of reading to try and get this to work).

    Anyway, when CPanel runs its update, it restarts the service automatically at like 2 am, which means one of the network adapters is out for like 5 hours until I can manually restart it. Is there a way to block the automatic restart of a service during the update process?
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,766
    Likes Received:
    439
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @BillyS


    This isn't an issue I've heard of occurring before on the Google Cloud Servers.

    cPanel isn't downloading Google's network updates - my assumption is a yum update is being run - this cPanel does call during upcp. You can stop the cPanel update from automatically installing new OS package updates during upcp by going to WHM>>Server Configuration>>Update Preferences -> Operating System Package Updates. Just keep in mind if you make this modification you'll need to update system packages manually.


    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. dalem

    dalem Well-Known Member PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,884
    Likes Received:
    119
    Trophy Points:
    368
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    if this is indeed the case your VPS instance network is shutting down after a upcp
    you could add a script to restart it

    add
    /scripts/postupcp

    with the contents
    /usr/bin/systemctl restart network.service


    as BillyS said this is not something that cpanel does it does not do anything with the network interfaces
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. BillyS

    BillyS Well-Known Member

    Joined:
    Mar 22, 2013
    Messages:
    49
    Likes Received:
    2
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    I'm a bit confused about server software versus system software. If I choose to set WHM>>Server Configuration>>Update Preferences -> Operating System Package Updates to manual, how do I update the software? Can I do it through WHM or do I have to run the following from the command line?

    /usr/local/cpanel/scripts/upcp
     
  5. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    5,766
    Likes Received:
    439
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @BillyS

    There is no system versus server there is Operating System software which is software required by your OS to run (which is what we're talking about here) and cPanel Software which is software provided by cPanel. In order to update Operating System software if you switched it to manual you'd need to run
    Code:
    yum update
    or change the preference to auto and manually run upcp then change it back once the cPanel update is complete.

    Thanks!
     
    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