Uninstalling clients hosted on NEOSYS Server: Difference between revisions

From NEOSYS Technical Support Wiki
Jump to navigationJump to search
No edit summary
Line 21: Line 21:
  ./doall <dbname> delete_site
  ./doall <dbname> delete_site


3. Delete the service, otherwise the services will start up every time ex1 reboots.
3. Disable the service, otherwise the services will start up every time ex1 reboots.
  ./doall <dbname> delete_service
  ./doall <dbname> disable


4. In doall, comment out the line corresponding to the client being uninstalled.
4. In doall, comment out the line corresponding to the client being uninstalled.
Line 36: Line 36:
1. Retain a copy of the client's latest backup sql.gz file in a separate directory (to be discussed and decided)
1. Retain a copy of the client's latest backup sql.gz file in a separate directory (to be discussed and decided)


2. Delete client directory from /root/hosts directory.
2. Delete the database and service
sudo -u postgres dropdb <dbname>
./doall <dbname> delete_service
 
3. Delete client directory from /root/hosts directory.
rm -r ~/hosts/<dbname>


3. Remove the terminated client's link from support home page (support.htm).
4. Remove the terminated client's link from support home page (support.htm).


4. Delete the associated entry from Zone Edit.
5. Delete the associated entry from Zone Edit.

Revision as of 08:57, 13 September 2022

This must be done in the following circumstances:

  1. Reinstallation on other servers
  2. Reinstallation on clients own server
  3. Termination of contract
  4. Any other reason

NEOSYS needs to:

  1. Ensure that the databases can no longer be logged in to by accident or design.
  2. Ensure that for a reasonable period of time that NEOSYS can be re-enabled in case of error or change in circumstances.

Include admin@neosys.com when sending emails regarding this subject.

Stage 1. Disabling

1. Ensure that the services for the client being uninstalled have been stopped.

./doall <dbname> stop

2. Delete the website

./doall <dbname> delete_site

3. Disable the service, otherwise the services will start up every time ex1 reboots.

./doall <dbname> disable

4. In doall, comment out the line corresponding to the client being uninstalled.

5. Comment the lines for the stopped installation in the Nagios config file so that Nagios stops alerting for it. (edit: genclients.sh)

6. Strike-through the terminated client's link on support home page (support.htm).

Stage 2. Permanent Deletion

We keep ex client data for up to one year before deleting, but after this period:

1. Retain a copy of the client's latest backup sql.gz file in a separate directory (to be discussed and decided)

2. Delete the database and service

sudo -u postgres dropdb <dbname>
./doall <dbname> delete_service

3. Delete client directory from /root/hosts directory.

rm -r ~/hosts/<dbname>

4. Remove the terminated client's link from support home page (support.htm).

5. Delete the associated entry from Zone Edit.