Stopping Restarting of Outdated Services
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?
-
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!0 -
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 0 -
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 0 -
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 yum update
or change the preference to auto and manually run upcp then change it back once the cPanel update is complete. Thanks!0
Please sign in to leave a comment.
Comments
4 comments