Web Host Pro Posted December 13, 2019 Share Posted December 13, 2019 I'm a little weary with the possibility of auto deleting the VPS servers. Can we disable this so we have to manually terminate any past due accounts? Hopefully with a global settings. 0 Quote Link to comment Share on other sites More sharing options...
string Posted December 13, 2019 Share Posted December 13, 2019 You can disable the automatic termination in the Automation Settings 0 Quote Link to comment Share on other sites More sharing options...
Web Host Pro Posted December 16, 2019 Author Share Posted December 16, 2019 On 12/13/2019 at 2:07 AM, string said: You can disable the automatic termination in the Automation Settings Thanks but I'm looking to just disable auto termination for VPS servers. Not all services. The option you posted is for everything. 0 Quote Link to comment Share on other sites More sharing options...
DennisHermannsen Posted December 16, 2019 Share Posted December 16, 2019 You would need to either remove the code from the module that handles the VPS's, or you could possibly use a hook to do it. Use PreModuleTerminate: https://developers.whmcs.com/hooks-reference/module/#premoduleterminate <?php add_hook('PreModuleTerminate', 1, function($vars) { // Code that checks if service is VPS if (code == true){ return [ 'abortcmd' => true, ] } }); 1 Quote Link to comment Share on other sites More sharing options...
Web Host Pro Posted December 18, 2019 Author Share Posted December 18, 2019 On 12/16/2019 at 1:26 AM, DennisHermannsen said: You would need to either remove the code from the module that handles the VPS's, or you could possibly use a hook to do it. Use PreModuleTerminate: https://developers.whmcs.com/hooks-reference/module/#premoduleterminate <?php add_hook('PreModuleTerminate', 1, function($vars) { // Code that checks if service is VPS if (code == true){ return [ 'abortcmd' => true, ] } }); I'll try that, thanks! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.