Running postupcp when upcp fails
Hi guys,
So I have a simple command in /scripts/postupcp to restart httpd when upcp completes, and it works fine (it's to solve an issue with PHP CRIU & binary updates).
But I just realised that postupcp isn't run when upcp fails - i.e. one aspect of upcp failed, but it continued doing other things, except calling postupcp.
The failure I had in upcp was "The "/usr/local/cpanel/scripts/rpmup" command (process 6546) reported error number 1 when it ended." It's more temp error / nuisance that happens every so often, and corrects itself, so I'm not too worried about that.
However, when errors like this do come up, if there a way for me to force run postupcp (or another script)?
-
hmm, suppose the hook doesn't have to be dependent on upcp. Suppose I could just schedule a crontab task to run 10mins after upcp's scheduled time. Thanks Lauren 0
Please sign in to leave a comment.
Comments
2 comments