Stopping Restarting of Outdated Services

BillyS

Well-Known Member
Mar 22, 2013
62
4
58
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?
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,309
363
Houston
Hi @BillyS


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

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).
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!
 

dalem

Well-Known Member
PartnerNOC
Oct 24, 2003
2,983
159
368
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
 

BillyS

Well-Known Member
Mar 22, 2013
62
4
58
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
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,309
363
Houston
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!