Terminate/suspendacct scripts features

Here you can find tutorials and notes for server-side maintenance/configuration

Terminate/suspendacct scripts features

Postby lik » Fri Jan 22, 2010 9:59 am

The switch in /scritps/killacct that keeps the DNS of an account like the check box in WHM "Keep Dns Zone (needed if you have moved a domain between servers in the same dns trust relationship, and wish to remove the old domain)" is :
Code: Select all
/scripts/killacct {accountname} n

The switch of /scripts/suspendacct script that prevents resellers from unsuspending the account is:
Code: Select all
/scripts/suspendacct {accountname} "The reason for suspension" 1

This will create two additional files.
The first one is used to store the reason of suspend:
/var/cpanel/suspended/{accountname}

The second one is used to "lock" unsuspend feature for reseller (empty file):
/var/cpanel/suspended/{accountname}.lock
lik
Founder
Founder
 
Posts: 497
Joined: Wed Dec 15, 2010 3:21 am

Return to Server Side Actions

 


  • Related topics
    Replies
    Views
    Last post
cron