~jontai/openvista-gtm-integration/bug400957

« back to all changes in this revision

Viewing changes to packages/rpm/openvista-utils.spec

  • Committer: Jonathan Tai
  • Date: 2009-07-20 17:23:59 UTC
  • Revision ID: jon.tai@medsphere.com-20090720172359-s04d417kpeztnbip
handle unknown errors

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
Name:           openvista-utils
2
2
Version:        0.8.4
3
 
Release:        2
 
3
Release:        3
4
4
Summary:        Utilities for configuring and managing OpenVista
5
5
License:        AGPL
6
6
Vendor:         Medsphere Systems Corporation
162
162
 
163
163
# update lock space in existing databases if upgrading
164
164
%triggerun -- openvista-utils <= 0.8.3-2
165
 
echo "Increasing lock space of existing databases to 400 pages..."
 
165
echo "Increasing lock space of existing databases..."
166
166
for instance in /opt/openvista/*; do
167
167
    # update global directory
168
168
    if [ -L ${instance}/gtm ]; then
184
184
            echo "Unable to increase `basename ${instance}` database's lock space to 400 pages; the database is currently in use.  Stop all processes accessing the `basename ${instance}` database, then run:"
185
185
            echo "gtm_dist=${instance}/gtm gtmgbldir=${instance}/globals/mumps.gld ${instance}/gtm/mupip set -region -lock_space=400 '*'"
186
186
            echo ""
 
187
        else
 
188
            echo ""
 
189
            echo "A problem was encountered when attempting to increase `basename ${instance}` database's lock space to 400 pages; the return code was ${retval}.  Please run the following command manually:"
 
190
            echo "gtm_dist=${instance}/gtm gtmgbldir=${instance}/globals/mumps.gld ${instance}/gtm/mupip set -region -lock_space=400 '*'"
 
191
            echo ""
187
192
        fi
188
193
    fi
189
194
done