Index: openacs-4/packages/acs-core-docs/www/xml/install-guide/database-maintenance.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/install-guide/database-maintenance.xml,v diff -u -r1.6 -r1.7 --- openacs-4/packages/acs-core-docs/www/xml/install-guide/database-maintenance.xml 26 Feb 2004 15:28:39 -0000 1.6 +++ openacs-4/packages/acs-core-docs/www/xml/install-guide/database-maintenance.xml 14 May 2004 14:10:28 -0000 1.7 @@ -35,7 +35,7 @@ Change the OpenACS service's configuration file to point to the remote database. Edit - /var/lib/aolserver/service0/etc/config.tcl + /var/lib/aolserver/$OPENACS_SERVICE_NAME/etc/config.tcl and change to @@ -60,14 +60,14 @@ option. This command will drop the user and every database object the user owns. - SVRMGR> drop user service0 cascade; + SVRMGR> drop user $OPENACS_SERVICE_NAME cascade; If this does not work because svrmgrl "cannot drop a user that is currently connected", make sure to kill the AOLserver using this user. If it still does not work, do: - SVRMGR> select username, sid, serial# from v$session where lower(username)='service0'; + SVRMGR> select username, sid, serial# from v$session where lower(username)='$OPENACS_SERVICE_NAME'; and then SVRMGR> alter system kill session 'sid, serial#'; @@ -81,7 +81,7 @@ If you feel the need to delete everything related to the service, you can also issue the following: - SVRMGR> drop tablespace service0 including contents cascade constraints; + SVRMGR> drop tablespace $OPENACS_SERVICE_NAME including contents cascade constraints; @@ -95,11 +95,11 @@ your server in /etc/inittab, reread the inittab with /sbin/init q, and then restart-aolserver - service0. + $OPENACS_SERVICE_NAME. Then, to drop the db, just do: -[service0 ~]$ dropdb service0 +[$OPENACS_SERVICE_NAME ~]$ dropdb $OPENACS_SERVICE_NAME DROP DATABASE @@ -128,7 +128,7 @@ We'll set vacuum up to run nightly at 1 AM. Add the following line: -0 1 * * * /usr/local/pgsql/bin/vacuumdb service0 +0 1 * * * /usr/local/pgsql/bin/vacuumdb $OPENACS_SERVICE_NAME ($Id$)