This article describes how the system handles ISPsystem licenses that customers can order with a VPS service.
Order
The system searches for available licenses. A license is considered free (it is located in the pool) provided that the following requirements are met:
- Status - "Active" or "Suspended".
- License name - "free.lic".
- License IP address - "0.0.0.0".
- Expiration date - larger than the current date.
- Date of the last IP change - more than a month ago.
- Date of the last key change - more than a month ago.
If the license is found, the system will do the following:
- Change the license name into "Item #<VPS_id>" addon <VPS_name"
- Change the license IP address into the IP address of a new service.
- Generate a new activation key;
- The system will remember the identifier of the "Control panel license" addon so that the license in BILLmanager will be bound to provider BILLmanage.
- The license will get activated and renewed if needed.
In the case of an error at any step, the system will put the license back into the pool, change its name into "free.lic", and its IP into "0.0.0.0".
If the license is not found in the pool, a new license will be ordered in BILLmanager - licensing server. A license name is generated based on the template: "Item #<VPS_id>" addon <VPS_name>"
Renewal
The renewal process depends on the renewal policy of the main service. When a license is going to expire, the system checks the status of the main service:
If the service is active, the license will be renewed. To define a renewal period, the order period of the main license is compared with the "Periods comparison" settings. The license will be renewed for the period specified in the configuration form. If the settings are not specified for the main service, the license will be renewed for the minimum period - 1 month.
Example: the server with ISPmanager is ordered for 2 years. In the "Periods comparison" form we can see that when the service is ordered for 2 years, a license should be ordered for 1 year. The license will expire soon, but the main service is still active. Since we have configured a comparison of order periods, ISPmanager will be renewed for 1 year.
If the main service is not active, the license won't be renewed.
Modification
All the operations performed with the main service in the provider's BILLmanager will be performed with the license in BILLmanager - licensing server:
- Service suspension will suspend the license (if this function is available to service provider).
- Service activation will activate the license.
- Service deletion will delete the license.
Changing parameters of the main service may influence the license:
- Changing the main IP address of the service will re-order the license. The existing license will be deleted, and a new one will be ordered for a new IP address.
- Canceling the license. If the "Control panel license" addon was changed into "Without control panel" or the selected control panel is not bound to the ISPsystem license tariff plan via its id, the existing license will be deleted.
- Ordering a new license. If a client orders a control panel bound to the ISPsystem license tariff (the license was never ordered before), a new license will be ordered.
- Editing the license. When the license is modified (if the control panel bound to the ISPsystem license tariff was selected in the "Control panel license" addon, but another license had been ordered earlier), the existing license will be deleted, and a new one will be ordered.
Deletion
Deleting the license in BILLmanager - licensing server will put it back into the pool. The license name will change into "free.lic" and its IP address will change into "0.0.0.0".