Suggestion to redirect WHM after restarting a service

GoWilkes

Well-Known Member
Sep 26, 2006
613
25
168
cPanel Access Level
Root Administrator
I have Chrome set to remember my previous settings.

I've recently discovered that if I use WHM to restart MySQL, then close the browser and later reopen it, the Restart is re-initiated. I assume that this would happen with other Restarts, too, but I haven't tested it.

My suggestion would be to redirect to a success page after a successful restart, so that it isn't reinitiated upon a browser refresh.
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
7,442
1,004
313
cPanel Access Level
Root Administrator
Hey there! While we don't redirect the content to a separate page, the page will scroll and confirm the restart happened. However, if you access the same link again, such as this example of restarting Bind:


it will perform the action again. There isn't any way around that, except making sure you don't open the tab from that specific URL. That sends a command to the server to perform the action, so even if there was a different redirect page, if you visit that link you'll restart Bind automatically.
 

keat63

Well-Known Member
Nov 20, 2014
1,916
263
113
cPanel Access Level
Root Administrator
I found something similar when performing system updates.
It's quite easy to re-initate an update after you've performed the update.
:)