-
-
Notifications
You must be signed in to change notification settings - Fork 3
hostsync.8
hostsync - Synchronize user additions/deletions across cluster
hostsync [ options ] -d virtual_domain
hostsync is a utility which synchronizes user additions and deletions between the mailstore and the control host in a clustered domain setup. It synchronizes the table indimail and the hostcntrl table on the control Host. This utility should be setup in cron(1) to be run every 30 minutes by the system administrator. Only one instance of hostsync can be run at a time.
Normally the tables indimail and hostcntrl should be synchronized. But in case of problems like the control host being down, or the database on the control Host being down, the tables can get out of sync. hostsync corrects all records that have changed on the mailstore, but have not got applied on hostcntrl by looking at the pw_uid field of the table indimail or indibak. Records which are synchronized have the value 1. Value of pw_uid other than 1 indicate the following
pw_uid Value Description ------------ ----------- 2 User not added to hostcntrl 4 User not deleted from hostcntrl
-v
Sets verbose option
-d
Name of the clustered virtual domain.
0 for success, 1 for any failure.